mirror of https://github.com/vector-im/riot-web
Hide settings after leaving a group
parent
42141f7da7
commit
0681df71b0
|
@ -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});
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue