mirror of
https://github.com/element-hq/element-web.git
synced 2024-11-30 23:31:28 +03:00
Set state from dispatch payload unconditionally
As apparently doing it confitionally is bad
This commit is contained in:
parent
03f4f269ce
commit
f52035f3cd
1 changed files with 7 additions and 11 deletions
|
@ -158,20 +158,16 @@ class RoomViewStore extends Store {
|
|||
}
|
||||
|
||||
_joinedRoom(payload) {
|
||||
if (payload.room_id === this._state.roomId) {
|
||||
this._setState({
|
||||
joining: false,
|
||||
});
|
||||
}
|
||||
this._setState({
|
||||
joining: false,
|
||||
});
|
||||
}
|
||||
|
||||
_joinRoomError(payload) {
|
||||
if (payload.room_id === this._state.roomId) {
|
||||
this._setState({
|
||||
joining: false,
|
||||
joinError: payload.err,
|
||||
});
|
||||
}
|
||||
this._setState({
|
||||
joining: false,
|
||||
joinError: payload.err,
|
||||
});
|
||||
}
|
||||
|
||||
reset() {
|
||||
|
|
Loading…
Reference in a new issue