mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-21 22:41:07 +02:00
Hide settings after leaving a group
This commit is contained in:
parent
6f10b5a410
commit
1da56d9e98
@ -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});
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user