mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-10 18:29:03 +00:00
Set state from dispatch payload unconditionally
As apparently doing it confitionally is bad
This commit is contained in:
@@ -158,21 +158,17 @@ class RoomViewStore extends Store {
|
||||
}
|
||||
|
||||
_joinedRoom(payload) {
|
||||
if (payload.room_id === this._state.roomId) {
|
||||
this._setState({
|
||||
joining: false,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
_joinRoomError(payload) {
|
||||
if (payload.room_id === this._state.roomId) {
|
||||
this._setState({
|
||||
joining: false,
|
||||
joinError: payload.err,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
reset() {
|
||||
this._state = Object.assign({}, INITIAL_STATE);
|
||||
|
||||
Reference in New Issue
Block a user