From 16181ff0ed1c527432d840efa41a669cd69083c1 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Tue, 17 Dec 2019 09:47:06 -0700 Subject: [PATCH] Fix right panel for multiple member info viewings Fixes https://github.com/vector-im/riot-web/issues/11663 Member info is special because it has parameters associated with it. What was happening was the RightPanelStore was seeing that it was already on member info and deciding to hide the pane instead. What we do now is consider any phase change with parameters (such as the user to pass to member info) as a proper phase change. --- src/stores/RightPanelStore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/RightPanelStore.js b/src/stores/RightPanelStore.js index 37e7498141..02775b847b 100644 --- a/src/stores/RightPanelStore.js +++ b/src/stores/RightPanelStore.js @@ -154,7 +154,7 @@ export default class RightPanelStore extends Store { }); } } else { - if (targetPhase === this._state.lastRoomPhase) { + if (targetPhase === this._state.lastRoomPhase && !payload.refireParams) { this._setState({ showRoomPanel: !this._state.showRoomPanel, });