mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-21 04:29:45 +01:00
ChatController: fix scroll to unread messages
Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
This commit is contained in:
parent
52b157d454
commit
1ee92e39dd
@ -2314,7 +2314,7 @@ class ChatController(args: Bundle) :
|
||||
|
||||
var chatMessage: ChatMessage
|
||||
|
||||
val shouldAddNewMessagesNotice = timeout == 0 && adapter?.itemCount ?: 0 > 0 && chatMessageList.size > 0
|
||||
val shouldAddNewMessagesNotice = (adapter?.itemCount ?: 0) > 0 && chatMessageList.isNotEmpty()
|
||||
|
||||
if (shouldAddNewMessagesNotice) {
|
||||
val unreadChatMessage = ChatMessage()
|
||||
|
Loading…
Reference in New Issue
Block a user