From 0681df71b07851150ced0d7b6282ffc324fdce6d 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 65f6a5b0b1..0ec216dea2 100644 --- a/src/components/structures/GroupView.js +++ b/src/components/structures/GroupView.js @@ -466,6 +466,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}); },