mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Initialize latestContacts to empty dict (#1207)
Seeing intermittent segfaults on [latestContacts allKeys]. This could be because latestContacts is initialized async. //FREEBIE
This commit is contained in:
parent
2565801c39
commit
78a5355b04
1 changed files with 1 additions and 0 deletions
|
@ -20,6 +20,7 @@ typedef BOOL (^ContactSearchBlock)(id, NSUInteger, BOOL *);
|
|||
if (self) {
|
||||
life = [TOCCancelTokenSource new];
|
||||
observableContactsController = [ObservableValueController observableValueControllerWithInitialValue:nil];
|
||||
latestContactsById = @{};
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue