mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-01 03:59:31 +03:00
Display timeline from the top of the screen for local rooms
This commit is contained in:
parent
7ea2d0a86d
commit
e86f9193dd
1 changed files with 6 additions and 3 deletions
|
@ -1426,6 +1426,9 @@ class TimelineFragment @Inject constructor(
|
|||
updateJumpToReadMarkerViewVisibility()
|
||||
jumpToBottomViewVisibilityManager.maybeShowJumpToBottomViewVisibilityWithDelay()
|
||||
}
|
||||
}.apply {
|
||||
// For local rooms, pin the view's content to the top edge (the layout is reversed)
|
||||
stackFromEnd = isLocalRoom()
|
||||
}
|
||||
val stateRestorer = LayoutManagerStateRestorer(layoutManager).register()
|
||||
scrollOnNewMessageCallback = ScrollOnNewMessageCallback(layoutManager, timelineEventController)
|
||||
|
|
Loading…
Add table
Reference in a new issue