From 42c55cd5ac519547cef1afedb2e08f266c773de4 Mon Sep 17 00:00:00 2001 From: rapterjet2004 Date: Thu, 22 Jun 2023 10:31:53 -0500 Subject: [PATCH] trivial formatting change to test checks Signed-off-by: Julius Linus julius.linus@nextcloud.com --- .../ui/dialog/FilterConversationFragment.kt | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/ui/dialog/FilterConversationFragment.kt b/app/src/main/java/com/nextcloud/talk/ui/dialog/FilterConversationFragment.kt index a24604a3c..5cabc25e2 100644 --- a/app/src/main/java/com/nextcloud/talk/ui/dialog/FilterConversationFragment.kt +++ b/app/src/main/java/com/nextcloud/talk/ui/dialog/FilterConversationFragment.kt @@ -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) } }