You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-20 16:22:28 +03:00
fix wrong way of unregistering from store
This commit is contained in:
@@ -274,14 +274,14 @@ module.exports = React.createClass({
|
|||||||
if (this._roomListStoreToken) {
|
if (this._roomListStoreToken) {
|
||||||
this._roomListStoreToken.remove();
|
this._roomListStoreToken.remove();
|
||||||
}
|
}
|
||||||
|
if (this._customTagStoreToken) {
|
||||||
|
this._customTagStoreToken.remove();
|
||||||
|
}
|
||||||
|
|
||||||
// NB: GroupStore is not a Flux.Store
|
// NB: GroupStore is not a Flux.Store
|
||||||
if (this._groupStoreToken) {
|
if (this._groupStoreToken) {
|
||||||
this._groupStoreToken.unregister();
|
this._groupStoreToken.unregister();
|
||||||
}
|
}
|
||||||
if (this._customTagStoreToken) {
|
|
||||||
this._customTagStoreToken.unregister();
|
|
||||||
}
|
|
||||||
|
|
||||||
// cancel any pending calls to the rate_limited_funcs
|
// cancel any pending calls to the rate_limited_funcs
|
||||||
this._delayedRefreshRoomList.cancelPendingCall();
|
this._delayedRefreshRoomList.cancelPendingCall();
|
||||||
|
|||||||
Reference in New Issue
Block a user