mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-30 08:12:40 +00:00
Bug Fix - App crashes on new start chat.
This commit is contained in:
parent
53887441ea
commit
2a4fc8e842
1 changed files with 8 additions and 0 deletions
|
@ -133,6 +133,8 @@
|
|||
|
||||
userContact = nil;
|
||||
|
||||
forceSearchResultRefresh = NO;
|
||||
|
||||
searchProcessingQueue = nil;
|
||||
searchProcessingLocalContacts = nil;
|
||||
searchProcessingMatrixContacts = nil;
|
||||
|
@ -299,6 +301,12 @@
|
|||
|
||||
dispatch_sync(dispatch_get_main_queue(), ^{
|
||||
|
||||
// Sanity check: check whether self has been destroyed.
|
||||
if (!searchProcessingQueue)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Render the search result only if there is no other search in progress.
|
||||
searchProcessingCount --;
|
||||
|
||||
|
|
Loading…
Reference in a new issue