From f6d32ef6e8739d595eef4581b1621cd28406fc9f Mon Sep 17 00:00:00 2001 From: Diogo Date: Mon, 16 Dec 2024 10:16:09 +0000 Subject: [PATCH] tap unread filter deselects other filters --- apps/ios/Shared/Views/ChatList/ChatListView.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/ios/Shared/Views/ChatList/ChatListView.swift b/apps/ios/Shared/Views/ChatList/ChatListView.swift index 3db47796c8..91704b65f9 100644 --- a/apps/ios/Shared/Views/ChatList/ChatListView.swift +++ b/apps/ios/Shared/Views/ChatList/ChatListView.swift @@ -369,6 +369,11 @@ struct ChatListView: View { .onChange(of: chatModel.currentUser?.userId) { _ in stopAudioPlayer() } + .onChange(of: showUnreadAndFavorites) { show in + if show { + chatTagsModel.selectedTag = ChatTagsModel.defaultTag + } + } .onChange(of: scrollToSearchBar) { scrollToSearchBar in if scrollToSearchBar { Task { self.scrollToSearchBar = false }