From bbdff701b4cf0f7926a69e401cc75a403da711ed Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 5 Dec 2019 23:40:18 -0700 Subject: [PATCH] Actually render the right panel in the new system --- src/components/structures/GroupView.js | 4 ++++ src/components/structures/RightPanel.js | 2 +- src/components/structures/RoomView.js | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/structures/GroupView.js b/src/components/structures/GroupView.js index 3571e0e89a..1bbd561027 100644 --- a/src/components/structures/GroupView.js +++ b/src/components/structures/GroupView.js @@ -580,6 +580,10 @@ export default createReactClass({ profileForm: null, }); break; + case 'after_right_panel_phase_change': + // We don't keep state on the right panel, so just re-render to update + this.forceUpdate(); + break; default: break; } diff --git a/src/components/structures/RightPanel.js b/src/components/structures/RightPanel.js index 76a6076892..39aff9be8d 100644 --- a/src/components/structures/RightPanel.js +++ b/src/components/structures/RightPanel.js @@ -141,7 +141,7 @@ export default class RightPanel extends React.Component { } onAction(payload) { - if (payload.action === "view_right_panel_phase") { + if (payload.action === "after_right_panel_phase_change") { this.setState({ phase: payload.phase, groupRoomId: payload.groupRoomId, diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index f4900139ec..53ff1fb760 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -582,6 +582,10 @@ module.exports = createReactClass({ onAction: function(payload) { switch (payload.action) { + case 'after_right_panel_phase_change': + // We don't keep state on the right panel, so just re-render to update + this.forceUpdate(); + break; case 'message_send_failed': case 'message_sent': this._checkIfAlone(this.state.room);