From cc1fb8ac9470b5cfd24b3e01dfb68817f4f6cc83 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Tue, 24 Oct 2017 10:22:13 +0100 Subject: [PATCH] Only show "Invite to this community" when viewing group members --- src/components/structures/RightPanel.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/structures/RightPanel.js b/src/components/structures/RightPanel.js index 30142ad2..e7e8c3cf 100644 --- a/src/components/structures/RightPanel.js +++ b/src/components/structures/RightPanel.js @@ -318,7 +318,10 @@ module.exports = React.createClass({ } if (this.props.groupId) { - inviteGroup = this.state.phase === this.Phase.GroupMemberList ? ( + inviteGroup = [ + this.Phase.GroupMemberInfo, + this.Phase.GroupMemberList, + ].includes(this.state.phase) ? (