Always scroll to the top of the conversation header when in message request state.
This commit is contained in:
parent
eae894152c
commit
566c2d5838
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user