mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-29 06:28:45 +03:00
Keep tracking read messages after sending a message with jump-to-bottom
Change-Id: I79d8fe3044f900556f8ef534ae2e25665d49f526
This commit is contained in:
parent
d58e9bb944
commit
5ad08e4b93
1 changed files with 1 additions and 1 deletions
|
@ -942,6 +942,7 @@ class TimelineFragment @Inject constructor(
|
|||
views.jumpToBottomView.visibility = View.INVISIBLE
|
||||
views.jumpToBottomView.debouncedClicks {
|
||||
views.jumpToBottomView.visibility = View.INVISIBLE
|
||||
timelineViewModel.handle(RoomDetailAction.ExitTrackingUnreadMessagesState)
|
||||
doJumpToBottom()
|
||||
}
|
||||
|
||||
|
@ -954,7 +955,6 @@ class TimelineFragment @Inject constructor(
|
|||
}
|
||||
|
||||
private fun doJumpToBottom() {
|
||||
timelineViewModel.handle(RoomDetailAction.ExitTrackingUnreadMessagesState)
|
||||
if (!timelineViewModel.timeline.isLive) {
|
||||
scrollOnNewMessageCallback.forceScrollOnNextUpdate()
|
||||
timelineViewModel.timeline.restartWithEventId(null)
|
||||
|
|
Loading…
Reference in a new issue