or former one to one

Signed-off-by: Julius Linus julius.linus@nextcloud.com
This commit is contained in:
rapterjet2004 2023-06-22 08:44:22 -05:00 committed by Marcel Hibbe
parent d24bd9d6a2
commit 63b9e41a16

View File

@ -147,7 +147,10 @@ class FilterConversationFragment(
when (k) {
MENTION -> result = (result && conversation.unreadMention) || (
result &&
(conversation.type == Conversation.ConversationType.ROOM_TYPE_ONE_TO_ONE_CALL) &&
(
conversation.type == Conversation.ConversationType.ROOM_TYPE_ONE_TO_ONE_CALL ||
conversation.type == Conversation.ConversationType.FORMER_ONE_TO_ONE
) &&
(conversation.unreadMessages > 0)
)
UNREAD -> result = result && (conversation.unreadMessages > 0)