1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

Use middlePanelResized instead of noisy

This commit is contained in:
Jaiwanth
2021-05-04 15:39:46 +05:30
parent 54e139a6ad
commit 29aec4abdb

View File

@@ -105,7 +105,7 @@ export default class RoomTile extends React.PureComponent<IProps, IState> {
this.notificationState = RoomNotificationStateStore.instance.getRoomState(this.props.room);
this.roomProps = EchoChamber.forRoom(this.props.room);
if (this.props.resizeNotifier) {
this.props.resizeNotifier.on("middlePanelResizedNoisy", this.onResize);
this.props.resizeNotifier.on("middlePanelResized", this.onResize);
}
}
@@ -207,7 +207,7 @@ export default class RoomTile extends React.PureComponent<IProps, IState> {
this.props.room.off("Room.name", this.onRoomNameUpdate);
}
if (this.props.resizeNotifier) {
this.props.resizeNotifier.off("middlePanelResizedNoisy", this.onResize);
this.props.resizeNotifier.off("middlePanelResized", this.onResize);
}
ActiveRoomObserver.removeListener(this.props.room.roomId, this.onActiveRoomUpdate);
defaultDispatcher.unregister(this.dispatcherRef);