From fe63b6b5bd3645cf5ef6363463f2e996d0b31b96 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 10 Apr 2019 13:21:42 +0200 Subject: [PATCH] setPhase can now open the panel, don't open it if closed on view_room --- src/components/views/right_panel/RoomHeaderButtons.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/right_panel/RoomHeaderButtons.js b/src/components/views/right_panel/RoomHeaderButtons.js index 5c64cb799b..aff5274cec 100644 --- a/src/components/views/right_panel/RoomHeaderButtons.js +++ b/src/components/views/right_panel/RoomHeaderButtons.js @@ -40,7 +40,7 @@ export default class RoomHeaderButtons extends HeaderButtons { } else { this.setPhase(RightPanel.Phase.RoomMemberList); } - } else if (payload.action === "view_room") { + } else if (payload.action === "view_room" && !this.props.collapsedRhs) { this.setPhase(RightPanel.Phase.RoomMemberList); } else if (payload.action === "view_3pid_invite") { if (payload.event) {