mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 03:59:35 +01:00
Merge pull request #1600 from nextcloud/bugfix/1599/unreadMessagesBubble
Also account for unread 1on1 messages for unreadMessages bubbleClicked
This commit is contained in:
commit
49d083d320
@ -631,7 +631,10 @@ public class ConversationsListController extends BaseController implements Searc
|
|||||||
for (AbstractFlexibleItem flexItem : callItems) {
|
for (AbstractFlexibleItem flexItem : callItems) {
|
||||||
Conversation conversationItem = ((ConversationItem) flexItem).getModel();
|
Conversation conversationItem = ((ConversationItem) flexItem).getModel();
|
||||||
int position = adapter.getGlobalPositionOf(flexItem);
|
int position = adapter.getGlobalPositionOf(flexItem);
|
||||||
if (conversationItem.unreadMention && position > lastVisibleItem) {
|
if ((conversationItem.unreadMention ||
|
||||||
|
(conversationItem.unreadMessages > 0 &&
|
||||||
|
conversationItem.type == Conversation.ConversationType.ROOM_TYPE_ONE_TO_ONE_CALL)) &&
|
||||||
|
position > lastVisibleItem) {
|
||||||
if (!newMentionPopupBubble.isShown()) {
|
if (!newMentionPopupBubble.isShown()) {
|
||||||
newMentionPopupBubble.show();
|
newMentionPopupBubble.show();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user