Skip to content

Commit

Permalink
trivial formatting change to test checks
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Linus julius.linus@nextcloud.com
  • Loading branch information
rapterjet2004 authored and AndyScherzinger committed Jun 23, 2023
1 parent 05247c0 commit 28080df
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,15 @@ class FilterConversationFragment(
for ((k, v) in filterState) {
if (v) {
when (k) {
MENTION -> result = (result && conversation.unreadMention) || (
result &&
(
conversation.type == Conversation.ConversationType.ROOM_TYPE_ONE_TO_ONE_CALL ||
conversation.type == Conversation.ConversationType.FORMER_ONE_TO_ONE
) &&
(conversation.unreadMessages > 0)
)
MENTION -> result = (result && conversation.unreadMention) ||
(
result &&
(
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)
}
}
Expand Down

0 comments on commit 28080df

Please sign in to comment.