When dispatching view_[my_]group[s], reset RoomViewStore
so that RoomTiles are not highlighted when the user is looking at MyGroups or GroupView
This commit is contained in:
parent
f7dce8ec70
commit
7b666af24c
1 changed files with 7 additions and 0 deletions
|
@ -72,6 +72,13 @@ class RoomViewStore extends Store {
|
||||||
case 'view_room':
|
case 'view_room':
|
||||||
this._viewRoom(payload);
|
this._viewRoom(payload);
|
||||||
break;
|
break;
|
||||||
|
case 'view_my_groups':
|
||||||
|
case 'view_group':
|
||||||
|
this._setState({
|
||||||
|
roomId: null,
|
||||||
|
roomAlias: null,
|
||||||
|
});
|
||||||
|
break;
|
||||||
case 'view_room_error':
|
case 'view_room_error':
|
||||||
this._viewRoomError(payload);
|
this._viewRoomError(payload);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue