Propagate room join errors to the UI
Dispatch so we can set the state in RoomViewStore. Show the error when the room join fails (unsure if it's better to do this from the component or the store). Remove unused joinError from roomview.
This commit is contained in:
parent
d81160d52f
commit
03f4f269ce
2 changed files with 40 additions and 8 deletions
|
@ -185,7 +185,6 @@ module.exports = React.createClass({
|
|||
roomLoading: RoomViewStore.isRoomLoading(),
|
||||
roomLoadError: RoomViewStore.getRoomLoadError(),
|
||||
joining: RoomViewStore.isJoining(),
|
||||
joinError: RoomViewStore.getJoinError(),
|
||||
}, () => {
|
||||
this._onHaveRoom();
|
||||
this.onRoom(MatrixClientPeg.get().getRoom(this.state.roomId));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue