Fix room view not properly maintaining scroll position (#11274)

This commit is contained in:
Michael Telatynski 2023-07-17 10:33:51 +01:00 committed by GitHub
parent 3ccc0fd8df
commit 2bc4764e01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -743,7 +743,7 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
} }
} }
if (this.state.roomId === null && newState.roomId !== null) { if (this.state.roomId === undefined && newState.roomId !== undefined) {
// Get the scroll state for the new room // Get the scroll state for the new room
// If an event ID wasn't specified, default to the one saved for this room // If an event ID wasn't specified, default to the one saved for this room