Hide settings after leaving a group

pull/21833/head
Luke Barnard 2018-04-10 11:49:35 +01:00
parent 6f10b5a410
commit 1da56d9e98
1 changed files with 4 additions and 0 deletions

View File

@ -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});
},