mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-07 21:26:13 +02:00
fix errors when trying to switch room
This commit is contained in:
parent
fdd324a943
commit
b68df0420b
@ -28,6 +28,7 @@ export default class RoomGridView extends React.Component {
|
||||
this.state = {
|
||||
roomStores: OpenRoomsStore.getRoomStores(),
|
||||
};
|
||||
this.onRoomsChanged = this.onRoomsChanged.bind(this);
|
||||
}
|
||||
|
||||
componentWillMount() {
|
||||
@ -39,7 +40,7 @@ export default class RoomGridView extends React.Component {
|
||||
componentWillUnmount() {
|
||||
this._unmounted = true;
|
||||
if (this._openRoomsStoreRegistration) {
|
||||
this._openRoomsStoreRegistration.unregister();
|
||||
this._openRoomsStoreRegistration.remove();
|
||||
}
|
||||
dis.unregister(this._dispatcherRef);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user