From 2bc4764e01b434cde1f63a2fc33d046e644b0d86 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 17 Jul 2023 10:33:51 +0100 Subject: [PATCH] Fix room view not properly maintaining scroll position (#11274) --- src/components/structures/RoomView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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