Chat no longer blank after Group info → Back #3
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/room-info-back"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Report: in a group, tap the header for Group info, tap Back, and the chat is empty; pulling the list up brings the history back.
Cause. Every return to the chat opens it afresh: the rows are cleared and the newest page is read again.
ScrollEngine.reloadAllreloaded the empty list and restored the old rows' position snapshot onto it. That leftcontentOffsetat 895 over a content height of 0.isScrollAnimatingwith no animation that ever ends.isBusyheld, so the page arriving a moment later was parked inpendingParent. Only the end of a drag drained it.Fix. An update that leaves no rows puts the offset at the top, without animating, and restores no snapshot. The next page lands through
initialLoadat the bottom.Tested in the iPhone 18 Pro simulator (iOS 27.0), with a test account on another.im in a group of its own:
off=895 content=0 isScrollAnimating=1and the 16 rows parked.gmake test: 359 tests, 0 failures.Not tried: Contact info in a 1:1 chat, which goes the same way. No unit test: the coordinator is private to the representable and needs a laid-out collection view.
Touches
ScrollEngine.swift, as does #4; the two merge cleanly.🤖 Generated with Claude Code
47b020051ftod1d5ec6c2a