trivial formatting change to test checks

Signed-off-by: Julius Linus julius.linus@nextcloud.com
This commit is contained in:
rapterjet2004 2023-06-22 10:31:53 -05:00 committed by Marcel Hibbe
parent 63b9e41a16
commit 42c55cd5ac

View File

@ -145,14 +145,15 @@ class FilterConversationFragment(
for ((k, v) in filterState) { for ((k, v) in filterState) {
if (v) { if (v) {
when (k) { when (k) {
MENTION -> result = (result && conversation.unreadMention) || ( MENTION -> result = (result && conversation.unreadMention) ||
result && (
( result &&
conversation.type == Conversation.ConversationType.ROOM_TYPE_ONE_TO_ONE_CALL || (
conversation.type == Conversation.ConversationType.FORMER_ONE_TO_ONE conversation.type == Conversation.ConversationType.ROOM_TYPE_ONE_TO_ONE_CALL ||
) && conversation.type == Conversation.ConversationType.FORMER_ONE_TO_ONE
(conversation.unreadMessages > 0) ) &&
) (conversation.unreadMessages > 0)
)
UNREAD -> result = result && (conversation.unreadMessages > 0) UNREAD -> result = result && (conversation.unreadMessages > 0)
} }
} }