From 1da56d9e980dadaa85dc6f3a4717ad5d5682fefc Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Tue, 10 Apr 2018 11:49:35 +0100 Subject: [PATCH] Hide settings after leaving a group --- src/components/structures/GroupView.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/structures/GroupView.js b/src/components/structures/GroupView.js index 4b8ac70336..91fa378f33 100644 --- a/src/components/structures/GroupView.js +++ b/src/components/structures/GroupView.js @@ -467,6 +467,10 @@ export default React.createClass({ _onGroupMyMembership: function(group) { if (group.groupId !== this.props.groupId) return; + if (group.myMembership === 'leave') { + // Leave settings - the user might have clicked the "Leave" button + this._onCancelClick(); + } this.setState({membershipBusy: false}); },