diff --git a/src/components/structures/GroupGridView.js b/src/components/structures/GroupGridView.js index 282919f019..b72e689bc5 100644 --- a/src/components/structures/GroupGridView.js +++ b/src/components/structures/GroupGridView.js @@ -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); }