diff --git a/src/components/structures/GroupView.js b/src/components/structures/GroupView.js
index fa75df53f0..e643e63df2 100644
--- a/src/components/structures/GroupView.js
+++ b/src/components/structures/GroupView.js
@@ -460,6 +460,9 @@ export default React.createClass({
summary,
isGroupPublicised: this._groupStore.getGroupPublicity(),
isUserPrivileged: this._groupStore.isUserPrivileged(),
+ isUserMember: this._groupStore.getGroupMembers().some(
+ (m) => m.userId === MatrixClientPeg.get().credentials.userId,
+ ),
error: null,
});
});
@@ -928,27 +931,28 @@ export default React.createClass({
tabIndex="2"
dir="auto" />;
} else {
+ const onGroupHeaderItemClick = this.state.isUserMember ? this._onEditClick : null;
const groupAvatarUrl = summary.profile ? summary.profile.avatar_url : null;
const groupName = summary.profile ? summary.profile.name : null;
avatarNode =