Always scroll to the top of the conversation header when in message request state.

This commit is contained in:
Cody Henthorne 2026-06-04 14:48:33 -04:00
parent eae894152c
commit 566c2d5838

View File

@ -3241,7 +3241,13 @@ class ConversationFragment :
val startPosition = meta.getStartPosition()
Log.d(TAG, "Scrolling to start position $startPosition")
if (meta.shouldScrollToFirstUnread()) {
if (!meta.messageRequestData.isMessageRequestAccepted) {
// Always scroll to the top to show header in MR state
layoutManager.scrollToPositionTopAligned(meta.threadSize, toolbarOffset) {
animationsAllowed = true
markReadHelper.stopIgnoringViewReveals(MarkReadHelper.getLatestTimestamp(adapter, layoutManager).orNull())
}
} else if (meta.shouldScrollToFirstUnread()) {
// Land the divider just below the toolbar.
layoutManager.scrollToPositionTopAligned(startPosition, toolbarOffset) {
animationsAllowed = true