From 7b666af24c15c00ea4ae4d47e6a0add70dab57a8 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Tue, 24 Oct 2017 16:32:52 +0100 Subject: [PATCH] When dispatching view_[my_]group[s], reset RoomViewStore so that RoomTiles are not highlighted when the user is looking at MyGroups or GroupView --- src/stores/RoomViewStore.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/stores/RoomViewStore.js b/src/stores/RoomViewStore.js index 795345242e..0a8eca8797 100644 --- a/src/stores/RoomViewStore.js +++ b/src/stores/RoomViewStore.js @@ -72,6 +72,13 @@ class RoomViewStore extends Store { case 'view_room': this._viewRoom(payload); break; + case 'view_my_groups': + case 'view_group': + this._setState({ + roomId: null, + roomAlias: null, + }); + break; case 'view_room_error': this._viewRoomError(payload); break;