From 83e6218930baa64845dafbaa4d25455643af2cba Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Mon, 25 Sep 2017 14:49:12 +0100 Subject: [PATCH] Remove listeners from group summary store on unmount --- src/components/structures/GroupView.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/structures/GroupView.js b/src/components/structures/GroupView.js index 969a58bf9f..21ec733f3f 100644 --- a/src/components/structures/GroupView.js +++ b/src/components/structures/GroupView.js @@ -410,6 +410,7 @@ export default React.createClass({ componentWillUnmount: function() { MatrixClientPeg.get().removeListener("Group.myMembership", this._onGroupMyMembership); + this._groupSummaryStore.removeAllListeners(); }, componentWillReceiveProps: function(newProps) {