fix(chat): stabilize unread marker positioning and unread popup behavior#6280
Open
mahibi wants to merge 1 commit into
Open
fix(chat): stabilize unread marker positioning and unread popup behavior#6280mahibi wants to merge 1 commit into
mahibi wants to merge 1 commit into
Conversation
Opening chats with unread messages had inconsistent behavior in the Compose chat list: - the unread marker was sometimes not scrolled into view (or not centered), - the unread popup could appear during initial entry when the marker should be the primary indicator, - popup counting could reset incorrectly and show "1 new message" repeatedly, - near-bottom auto-scroll to newest messages regressed in some cases. This change updates ChatView state/effect handling to: - scroll to and center the unread marker once it is present in the loaded item list, - suppress the unread popup during marker-based initial entry, - keep popup counting stable for real incoming messages after entry, - restore auto-scroll to newest messages when the user is already near the bottom. AI-assistant: GitHub Copilot 1.9.1-251 (GPT-5.3-Codex) Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Collaborator
Author
|
/backport to stable-24.0 |
Contributor
|
APK file: https://github.com/nextcloud/talk-android/actions/runs/26824102786/artifacts/7360252387 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Opening chats with unread messages had inconsistent behavior in the Compose chat list:
This change updates ChatView state/effect handling to:
🏁 Checklist
/backport to stable-xx.x