You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
Merge pull request #1752 from matrix-org/dbkr/roomliststore_unregister
Remove RoomListStore listener
This commit is contained in:
@@ -191,6 +191,10 @@ module.exports = React.createClass({
|
|||||||
this._tagStoreToken.remove();
|
this._tagStoreToken.remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this._roomListStoreToken) {
|
||||||
|
this._roomListStoreToken.remove();
|
||||||
|
}
|
||||||
|
|
||||||
if (this._groupStoreTokens.length > 0) {
|
if (this._groupStoreTokens.length > 0) {
|
||||||
// NB: GroupStore is not a Flux.Store
|
// NB: GroupStore is not a Flux.Store
|
||||||
this._groupStoreTokens.forEach((token) => token.unregister());
|
this._groupStoreTokens.forEach((token) => token.unregister());
|
||||||
|
|||||||
Reference in New Issue
Block a user