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.
pull/21833/head
Travis Ralston 2019-12-17 09:47:06 -07:00
parent 0c89ab9fb5
commit 16181ff0ed
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ export default class RightPanelStore extends Store {
}); });
} }
} else { } else {
if (targetPhase === this._state.lastRoomPhase) { if (targetPhase === this._state.lastRoomPhase && !payload.refireParams) {
this._setState({ this._setState({
showRoomPanel: !this._state.showRoomPanel, showRoomPanel: !this._state.showRoomPanel,
}); });