Remove listeners from group summary store on unmount

pull/21833/head
Luke Barnard 2017-09-25 14:49:12 +01:00
parent 8e7d58797d
commit 83e6218930
1 changed files with 1 additions and 0 deletions

View File

@ -410,6 +410,7 @@ export default React.createClass({
componentWillUnmount: function() {
MatrixClientPeg.get().removeListener("Group.myMembership", this._onGroupMyMembership);
this._groupSummaryStore.removeAllListeners();
},
componentWillReceiveProps: function(newProps) {