mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 22:14:58 +08:00
Merge pull request #1489 from matrix-org/luke/groups-invited-users-hide-if-empty
Only show invited section if there are invited group members
This commit is contained in:
commit
24c4c1edc7
@ -161,7 +161,8 @@ export default withMatrixClient(React.createClass({
|
|||||||
{ this.makeGroupMemberTiles(this.state.searchQuery, this.state.members) }
|
{ this.makeGroupMemberTiles(this.state.searchQuery, this.state.members) }
|
||||||
</div> : <div />;
|
</div> : <div />;
|
||||||
|
|
||||||
const invited = this.state.invitedMembers ? <div className="mx_MemberList_invited">
|
const invited = (this.state.invitedMembers && this.state.invitedMembers.length > 0) ?
|
||||||
|
<div className="mx_MemberList_invited">
|
||||||
<h2>{ _t("Invited") }</h2>
|
<h2>{ _t("Invited") }</h2>
|
||||||
{ this.makeGroupMemberTiles(this.state.searchQuery, this.state.invitedMembers) }
|
{ this.makeGroupMemberTiles(this.state.searchQuery, this.state.invitedMembers) }
|
||||||
</div> : <div />;
|
</div> : <div />;
|
||||||
|
Loading…
Reference in New Issue
Block a user