Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 1da56d9

Browse files
committed
Hide settings after leaving a group
1 parent 6f10b5a commit 1da56d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/structures/GroupView.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,10 @@ export default React.createClass({
467467
_onGroupMyMembership: function(group) {
468468
if (group.groupId !== this.props.groupId) return;
469469

470+
if (group.myMembership === 'leave') {
471+
// Leave settings - the user might have clicked the "Leave" button
472+
this._onCancelClick();
473+
}
470474
this.setState({membershipBusy: false});
471475
},
472476

0 commit comments

Comments
 (0)