From 7c21cf0c93b9924c27fa86c210babdb9e0c29770 Mon Sep 17 00:00:00 2001 From: SpiritCroc Date: Tue, 22 Nov 2022 10:42:21 +0100 Subject: [PATCH] Fix jump-to-bottom sometimes jumping back up Change-Id: I798247588b77d3dba0180a150b40def6e235efc7 --- .../im/vector/app/features/home/room/detail/TimelineFragment.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/TimelineFragment.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/TimelineFragment.kt index 9fc4d88b80..07f53c0bfc 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/TimelineFragment.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/TimelineFragment.kt @@ -778,6 +778,7 @@ class TimelineFragment : } private fun doJumpToBottom() { + scrollOnNewMessageCallback.initialForceScrollEventId = null if (timelineViewModel.timeline?.isLive == false) { scrollOnNewMessageCallback.forceScrollOnNextUpdate() timelineViewModel.timeline?.restartWithEventId(null)