You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
fix errors when trying to switch room
This commit is contained in:
@ -28,6 +28,7 @@ export default class RoomGridView extends React.Component {
|
|||||||
this.state = {
|
this.state = {
|
||||||
roomStores: OpenRoomsStore.getRoomStores(),
|
roomStores: OpenRoomsStore.getRoomStores(),
|
||||||
};
|
};
|
||||||
|
this.onRoomsChanged = this.onRoomsChanged.bind(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillMount() {
|
componentWillMount() {
|
||||||
@ -39,7 +40,7 @@ export default class RoomGridView extends React.Component {
|
|||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
this._unmounted = true;
|
this._unmounted = true;
|
||||||
if (this._openRoomsStoreRegistration) {
|
if (this._openRoomsStoreRegistration) {
|
||||||
this._openRoomsStoreRegistration.unregister();
|
this._openRoomsStoreRegistration.remove();
|
||||||
}
|
}
|
||||||
dis.unregister(this._dispatcherRef);
|
dis.unregister(this._dispatcherRef);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user