mirror of https://github.com/vector-im/riot-web
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>pull/21833/head
parent
b54a6d570e
commit
2ceed006aa
|
@ -133,7 +133,9 @@ export default class CallPreview extends React.Component<IProps, IState> {
|
||||||
dis.unregister(this.dispatcherRef);
|
dis.unregister(this.dispatcherRef);
|
||||||
SettingsStore.unwatchSetting(this.settingsWatcherRef);
|
SettingsStore.unwatchSetting(this.settingsWatcherRef);
|
||||||
const room = MatrixClientPeg.get().getRoom(this.state.roomId);
|
const room = MatrixClientPeg.get().getRoom(this.state.roomId);
|
||||||
WidgetLayoutStore.instance.off(WidgetLayoutStore.emissionForRoom(room), this.updateCalls);
|
if (room) {
|
||||||
|
WidgetLayoutStore.instance.off(WidgetLayoutStore.emissionForRoom(room), this.updateCalls);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private onRoomViewStoreUpdate = () => {
|
private onRoomViewStoreUpdate = () => {
|
||||||
|
|
Loading…
Reference in New Issue