Skip to content

Commit

Permalink
Fix room view not properly maintaining scroll position (#11274)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy committed Jul 17, 2023
1 parent 3ccc0fd commit 2bc4764
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/structures/RoomView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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

// If an event ID wasn't specified, default to the one saved for this room
Expand Down

0 comments on commit 2bc4764

Please sign in to comment.