From 1a1f8bdf82df075540baa00b9b5ee91926a0859b Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 6 Feb 2019 14:24:17 +0000 Subject: [PATCH] fix wrong way of unregistering from store --- src/components/views/rooms/RoomList.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/views/rooms/RoomList.js b/src/components/views/rooms/RoomList.js index b5dfa892fb..9d70e36d6a 100644 --- a/src/components/views/rooms/RoomList.js +++ b/src/components/views/rooms/RoomList.js @@ -274,14 +274,14 @@ module.exports = React.createClass({ if (this._roomListStoreToken) { this._roomListStoreToken.remove(); } + if (this._customTagStoreToken) { + this._customTagStoreToken.remove(); + } // NB: GroupStore is not a Flux.Store if (this._groupStoreToken) { this._groupStoreToken.unregister(); } - if (this._customTagStoreToken) { - this._customTagStoreToken.unregister(); - } // cancel any pending calls to the rate_limited_funcs this._delayedRefreshRoomList.cancelPendingCall();