From 191cc5a234da52f59fe0269313ed0d89e6139b8c Mon Sep 17 00:00:00 2001 From: QuentinArguillere Date: Tue, 7 Jun 2022 12:33:02 +0200 Subject: [PATCH] Reload the table data after clearing the arrays to avoid potential crash due to asynchronous call to reloadData --- Classes/ChatConversationCreateTableView.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Classes/ChatConversationCreateTableView.m b/Classes/ChatConversationCreateTableView.m index 7a682b24b..9a512a997 100644 --- a/Classes/ChatConversationCreateTableView.m +++ b/Classes/ChatConversationCreateTableView.m @@ -169,6 +169,7 @@ [_phoneOrAddr removeAllObjects]; [_addressesCached removeAllObjects]; [_ldapContactAddressBookMap removeAllObjects]; + [self.tableView reloadData]; _reloadMagicSearch = _reloadMagicSearch || [filter length]==0 || ![[MagicSearchSingleton.instance currentFilter] isEqualToString:filter]; [MagicSearchSingleton.instance setCurrentFilter:filter];