From c8772cb61253c3b5c0d691976f75a7f6a9e62787 Mon Sep 17 00:00:00 2001 From: Diogo Date: Mon, 30 Dec 2024 22:00:18 +0000 Subject: [PATCH] add notes preset tag --- apps/ios/Shared/Views/ChatList/ChatListView.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/ios/Shared/Views/ChatList/ChatListView.swift b/apps/ios/Shared/Views/ChatList/ChatListView.swift index edf9a3e5d2..18a6f0bdfc 100644 --- a/apps/ios/Shared/Views/ChatList/ChatListView.swift +++ b/apps/ios/Shared/Views/ChatList/ChatListView.swift @@ -36,6 +36,7 @@ enum PresetTag: Int, Identifiable, CaseIterable, Equatable { case contacts = 1 case groups = 2 case business = 3 + case notes = 4 var id: Int { rawValue } } @@ -829,6 +830,7 @@ struct ChatTagsView: View { case .contacts: (active ? "person.fill" : "person", "Contacts") case .groups: (active ? "person.2.fill" : "person.2", "Groups") case .business: (active ? "briefcase.fill" : "briefcase", "Businesses") + case .notes: (active ? "folder.fill" : "folder", "Notes") } } @@ -871,6 +873,11 @@ func presetTagMatchesChat(_ tag: PresetTag, _ chatInfo: ChatInfo) -> Bool { } case .business: chatInfo.groupInfo?.businessChat?.chatType == .business + case .notes: + switch chatInfo { + case .local: true + default: false + } } }