Briefly opening the channel list resets the chat scroll position

(#1798) Bug Fixed mobile

Observed behaviour

The scroll position is reset to the latest message

Reproduction steps

  1. Scroll up in a chat
  2. Quickly swipe to open the channel list
  3. Quickly swipe back to the chat

Build information

Version 1.0.0, Beta 25, Channel Beta, Build 29, iOS 26.6 (arm64), Device iPhone13,1, Locale en-GB, Push apns, Flutter 3.44.2, Dart 3.12.2

Platform

iOS

Details

Expected behaviour The scroll position should be respected
fluxer_upload_1782079664209759_video.mp4 | 7.3 MB
  1. Rex changed the status from Needs triage to Fixed

4 comments

Sign in with Fluxer to comment and vote.
Comment by loyka32
loyka32Reviewer 1 vote
Can reproduce Confirmed - Replicated behaviour. - Version 1.0.0, Beta 25, Channel Beta, Build 2091, Android 16 (arm64), Device samsung SM-F966B, Locale de-DE, Push unifiedpush, Flutter 3.44.2, Dart 3.12.2
Comment by Vahste
Vahste 1 vote
Can reproduce CR Version 1.0.0, Beta 25, Channel Beta, Build 2090, Android 16 (arm64), Device samsung SM-A176U1, Locale en-US, Push fcm, Flutter 3.44.2, Dart 3.12.2
Comment by hihi217
Can reproduce CR — Version 1.0.0, Beta 25, Channel Beta, Build 2090, Android 10 (arm64), Device samsung SM-N960U1, Locale en-US, Push fcm, Flutter 3.44.2, Dart 3.12.2
Comment by @M0n7y5
RexSystem 1 vote originally by @M0n7y5 on GitHub
Fixed on canary by 878033cd and bb2b73fc — the chat subtree now stays mounted behind the drawer (Offstage instead of removal), so the scroll controller and position survive the reveal round-trip. Covered by a regression test in message_list_scroll_test.dart. Will be in the next beta; please reopen if it still reproduces there.