Appease the linter
parent
807a8c41e3
commit
27dc4cb574
|
@ -620,7 +620,10 @@ export default class RoomView extends React.Component<IProps, IState> {
|
||||||
WidgetStore.instance.removeListener(UPDATE_EVENT, this.onWidgetStoreUpdate);
|
WidgetStore.instance.removeListener(UPDATE_EVENT, this.onWidgetStoreUpdate);
|
||||||
|
|
||||||
if (this.state.room) {
|
if (this.state.room) {
|
||||||
WidgetLayoutStore.instance.off(WidgetLayoutStore.emissionForRoom(this.state.room), this.onWidgetLayoutChange);
|
WidgetLayoutStore.instance.off(
|
||||||
|
WidgetLayoutStore.emissionForRoom(this.state.room),
|
||||||
|
this.onWidgetLayoutChange,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.showReadReceiptsWatchRef) {
|
if (this.showReadReceiptsWatchRef) {
|
||||||
|
@ -919,7 +922,10 @@ export default class RoomView extends React.Component<IProps, IState> {
|
||||||
|
|
||||||
// Detach the listener if the room is changing for some reason
|
// Detach the listener if the room is changing for some reason
|
||||||
if (this.state.room) {
|
if (this.state.room) {
|
||||||
WidgetLayoutStore.instance.off(WidgetLayoutStore.emissionForRoom(this.state.room), this.onWidgetLayoutChange);
|
WidgetLayoutStore.instance.off(
|
||||||
|
WidgetLayoutStore.emissionForRoom(this.state.room),
|
||||||
|
this.onWidgetLayoutChange,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.setState({
|
this.setState({
|
||||||
|
|
Loading…
Reference in New Issue