From 39048ab01faa432d92f324346b777730c13bcc5f Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Mon, 21 May 2018 16:34:08 +0200 Subject: [PATCH] reset search cache when needed --- Classes/ChatConversationCreateView.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Classes/ChatConversationCreateView.m b/Classes/ChatConversationCreateView.m index 27f2929fa..b0e9a6a8d 100644 --- a/Classes/ChatConversationCreateView.m +++ b/Classes/ChatConversationCreateView.m @@ -117,6 +117,9 @@ typedef enum { ContactsAll, ContactsLinphone, ContactsMAX } ContactsCategory; - (void)changeView:(ContactsCategory)view { CGRect frame = _selectedButtonImage.frame; + if (_tableController.magicSearch) + linphone_magic_search_reset_search_cache(_tableController.magicSearch); + if (view == ContactsAll && !_allButton.selected) { frame.origin.x = _allButton.frame.origin.x; _allButton.selected = TRUE;