From c750a8cfb2c4e27ce4cc2a6bd14962ee3330ff93 Mon Sep 17 00:00:00 2001 From: Benoit Martins Date: Mon, 8 Jul 2024 09:50:08 +0200 Subject: [PATCH] Display all calls when call history filter is empty --- Linphone/UI/Main/ContentView.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Linphone/UI/Main/ContentView.swift b/Linphone/UI/Main/ContentView.swift index 8d1ae5690..96d7cc2d6 100644 --- a/Linphone/UI/Main/ContentView.swift +++ b/Linphone/UI/Main/ContentView.swift @@ -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 {