Skip to content

Commit

Permalink
revert changes to scroll to last read message
Browse files Browse the repository at this point in the history
(this contains bugs and will be done in PR #4136)

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
  • Loading branch information
mahibi committed Sep 4, 2024
1 parent 0ae2cfc commit 94e30df
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -784,16 +784,6 @@ class ChatActivity :
}
}

this.lifecycleScope.launch {
chatViewModel.getLastCommonReadFlow
.onEach { lastRead ->
scrollToMessageWithId(lastRead.toString())
binding.scrollDownButton.visibility = View.GONE
binding.unreadMessagesPopup.show()
}
.collect()
}

this.lifecycleScope.launch {
chatViewModel.getMessageFlow
.onEach { pair ->
Expand Down

0 comments on commit 94e30df

Please sign in to comment.