Skip to content

Commit cc1fb8a

Browse files
author
Luke Barnard
committed
Only show "Invite to this community" when viewing group members
1 parent 8672939 commit cc1fb8a

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)