Appease the linter

This commit is contained in:
Travis Ralston 2021-01-22 17:03:36 -07:00
parent 807a8c41e3
commit 27dc4cb574

View File

@ -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({