Remove listeners from group summary store on unmount

This commit is contained in:
Luke Barnard 2017-09-25 14:49:12 +01:00
parent 8e7d58797d
commit 83e6218930

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) {