ui: exclude muted chats from filtered chats (#3900)

This commit is contained in:
Evgeny Poberezkin authored and GitHub committed 2024-03-12 17:33:28 +00:00
1 parent d3b255b7cb
commit 5fd8e6e4fe
2 files changed
+6 -2

No files matched your search

@@ -535,7 +535,9 @@ private fun filteredChats(
}
private fun filtered(chat: Chat): Boolean =
(chat.chatInfo.chatSettings?.favorite ?: false) || chat.chatStats.unreadCount > 0 || chat.chatStats.unreadChat
(chat.chatInfo.chatSettings?.favorite ?: false) ||
chat.chatStats.unreadChat ||
(chat.chatInfo.ntfsEnabled && chat.chatStats.unreadCount > 0)
private fun viewNameContains(cInfo: ChatInfo, s: String): Boolean =
cInfo.chatViewName.lowercase().contains(s.lowercase())