mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-26 02:29:28 +03:00
Fix jump-to-bottom sometimes jumping back up
Change-Id: I798247588b77d3dba0180a150b40def6e235efc7
This commit is contained in:
parent
15d8a916b1
commit
7c21cf0c93
1 changed files with 1 additions and 0 deletions
|
@ -778,6 +778,7 @@ class TimelineFragment :
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun doJumpToBottom() {
|
private fun doJumpToBottom() {
|
||||||
|
scrollOnNewMessageCallback.initialForceScrollEventId = null
|
||||||
if (timelineViewModel.timeline?.isLive == false) {
|
if (timelineViewModel.timeline?.isLive == false) {
|
||||||
scrollOnNewMessageCallback.forceScrollOnNextUpdate()
|
scrollOnNewMessageCallback.forceScrollOnNextUpdate()
|
||||||
timelineViewModel.timeline?.restartWithEventId(null)
|
timelineViewModel.timeline?.restartWithEventId(null)
|
||||||
|
|
Loading…
Add table
Reference in a new issue