when the user switches room, close room settings

this is especially annoying if they choose Leave Room
which indirectly switches room

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2018-06-26 17:07:39 +01:00
parent 5b027c6410
commit a548c83647
No known key found for this signature in database
GPG Key ID: 3F879DA5AD802A5E
1 changed files with 2 additions and 0 deletions

View File

@ -147,6 +147,8 @@ class RoomViewStore extends Store {
joining: payload.joining || false, joining: payload.joining || false,
// Reset replyingToEvent because we don't want cross-room because bad UX // Reset replyingToEvent because we don't want cross-room because bad UX
replyingToEvent: null, replyingToEvent: null,
// pull the user out of Room Settings
isEditingSettings: false,
}; };
if (this._state.forwardingEvent) { if (this._state.forwardingEvent) {