Set state from dispatch payload unconditionally
As apparently doing it confitionally is badpull/21833/head
parent
03f4f269ce
commit
f52035f3cd
|
@ -158,20 +158,16 @@ class RoomViewStore extends Store {
|
||||||
}
|
}
|
||||||
|
|
||||||
_joinedRoom(payload) {
|
_joinedRoom(payload) {
|
||||||
if (payload.room_id === this._state.roomId) {
|
this._setState({
|
||||||
this._setState({
|
joining: false,
|
||||||
joining: false,
|
});
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_joinRoomError(payload) {
|
_joinRoomError(payload) {
|
||||||
if (payload.room_id === this._state.roomId) {
|
this._setState({
|
||||||
this._setState({
|
joining: false,
|
||||||
joining: false,
|
joinError: payload.err,
|
||||||
joinError: payload.err,
|
});
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
reset() {
|
reset() {
|
||||||
|
|
Loading…
Reference in New Issue