Skip to content

Room scroll state is broken mk2 #26759

@greentore

Description

@greentore

Steps to reproduce

Follow-up to #25810
Room scroll position isn't properly maintained again since Element v1.11.50 (matrix-react-sdk v3.85.0). I confirmed it works properly in v1.11.49.
Regressed by matrix-org/matrix-react-sdk@01e7e01 / matrix-org/matrix-react-sdk#11799
More specifically, the issue goes away if you comment out dis.dispatch<ActionPayload>({ action: Action.RoomLoaded }); in src/components/structures/RoomView.tsx, but obviously the real bug is somewhere deeper.

Outcome

What did you expect?

The room's scroll position is restored.

What happened instead?

The room's scroll position is restored only to scroll to the bottom a moment later.

Operating system

No response

Browser information

No response

URL for webapp

No response

Application version

No response

Homeserver

No response

Will you send logs?

No

Metadata

Metadata

Assignees

Labels

A-RoomA-TimelineO-FrequentAffects or can be seen by most users regularly or impacts most users' first experienceS-MajorSeverely degrades major functionality or product features, with no satisfactory workaroundT-DefectX-RegressionX-Release-Blocker

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions