Merge pull request #5407 from vector-im/luke/fix-invite-to-community
Only show "Invite to this community" when viewing group members
This commit is contained in:
commit
ff5fbd4863
1 changed files with 4 additions and 1 deletions
|
@ -318,7 +318,10 @@ module.exports = React.createClass({
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.props.groupId) {
|
if (this.props.groupId) {
|
||||||
inviteGroup = this.state.phase === this.Phase.GroupMemberList ? (
|
inviteGroup = [
|
||||||
|
this.Phase.GroupMemberInfo,
|
||||||
|
this.Phase.GroupMemberList,
|
||||||
|
].includes(this.state.phase) ? (
|
||||||
<AccessibleButton className="mx_RightPanel_invite" onClick={ this.onInviteButtonClick } >
|
<AccessibleButton className="mx_RightPanel_invite" onClick={ this.onInviteButtonClick } >
|
||||||
<div className="mx_RightPanel_icon" >
|
<div className="mx_RightPanel_icon" >
|
||||||
<TintableSvg src="img/icon-invite-people.svg" width="35" height="35" />
|
<TintableSvg src="img/icon-invite-people.svg" width="35" height="35" />
|
||||||
|
|
Loading…
Reference in a new issue