Remove listeners from group summary store on unmount
This commit is contained in:
parent
8e7d58797d
commit
83e6218930
1 changed files with 1 additions and 0 deletions
|
@ -410,6 +410,7 @@ export default React.createClass({
|
|||
|
||||
componentWillUnmount: function() {
|
||||
MatrixClientPeg.get().removeListener("Group.myMembership", this._onGroupMyMembership);
|
||||
this._groupSummaryStore.removeAllListeners();
|
||||
},
|
||||
|
||||
componentWillReceiveProps: function(newProps) {
|
||||
|
|
Loading…
Reference in a new issue