diff --git a/src/components/structures/RoomView.tsx b/src/components/structures/RoomView.tsx index c32de516bd..2e81dff67a 100644 --- a/src/components/structures/RoomView.tsx +++ b/src/components/structures/RoomView.tsx @@ -743,7 +743,7 @@ export class RoomView extends React.Component { } } - if (this.state.roomId === null && newState.roomId !== null) { + if (this.state.roomId === undefined && newState.roomId !== undefined) { // Get the scroll state for the new room // If an event ID wasn't specified, default to the one saved for this room