Display all calls when call history filter is empty

This commit is contained in:
Benoit Martins 2024-07-08 09:50:08 +02:00
parent ea921badfb
commit c750a8cfb2

View file

@ -448,7 +448,11 @@ struct ContentView: View {
MagicSearchSingleton.shared.searchForContacts(
sourceFlags: MagicSearch.Source.Friends.rawValue | MagicSearch.Source.LdapServers.rawValue)
} else if index == 1 {
historyListViewModel.filterCallLogs(filter: text)
if text.isEmpty {
historyListViewModel.resetFilterCallLogs()
} else {
historyListViewModel.filterCallLogs(filter: text)
}
} else if index == 2 {
//TODO Conversations List reset
} else if index == 3 {