mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-09 07:29:52 +00:00
Merge pull request #4630 from nextcloud/bugfix/4628/noUnreadMessagesBubbleForInvisibleMessages
no "unread messages" popup for invisible messages
This commit is contained in:
commit
4f49deadf2
@ -855,14 +855,15 @@ class ChatActivity :
|
|||||||
var chatMessageList = triple.third
|
var chatMessageList = triple.third
|
||||||
|
|
||||||
chatMessageList = handleSystemMessages(chatMessageList)
|
chatMessageList = handleSystemMessages(chatMessageList)
|
||||||
|
if (chatMessageList.isEmpty()) {
|
||||||
|
return@onEach
|
||||||
|
}
|
||||||
|
|
||||||
determinePreviousMessageIds(chatMessageList)
|
determinePreviousMessageIds(chatMessageList)
|
||||||
|
|
||||||
handleExpandableSystemMessages(chatMessageList)
|
handleExpandableSystemMessages(chatMessageList)
|
||||||
|
|
||||||
if (chatMessageList.isNotEmpty() &&
|
if (ChatMessage.SystemMessageType.CLEARED_CHAT == chatMessageList[0].systemMessageType) {
|
||||||
ChatMessage.SystemMessageType.CLEARED_CHAT == chatMessageList[0].systemMessageType
|
|
||||||
) {
|
|
||||||
adapter?.clear()
|
adapter?.clear()
|
||||||
adapter?.notifyDataSetChanged()
|
adapter?.notifyDataSetChanged()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user