Skip to content

Commit ff5fbd4

Browse files
authored
Merge pull request element-hq#5407 from vector-im/luke/fix-invite-to-community
Only show "Invite to this community" when viewing group members
2 parents 8672939 + cc1fb8a commit ff5fbd4

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎src/components/structures/RightPanel.js‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,10 @@ module.exports = React.createClass({
318318
}
319319

320320
if (this.props.groupId) {
321-
inviteGroup = this.state.phase === this.Phase.GroupMemberList ? (
321+
inviteGroup = [
322+
this.Phase.GroupMemberInfo,
323+
this.Phase.GroupMemberList,
324+
].includes(this.state.phase) ? (
322325
<AccessibleButton className="mx_RightPanel_invite" onClick={ this.onInviteButtonClick } >
323326
<div className="mx_RightPanel_icon" >
324327
<TintableSvg src="img/icon-invite-people.svg" width="35" height="35" />

0 commit comments

Comments
 (0)