mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 02:05:45 +03:00
fix wrong way of unregistering from store
This commit is contained in:
parent
0ab6ab639e
commit
1a1f8bdf82
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue