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
|
@ -20,6 +20,7 @@ typedef BOOL (^ContactSearchBlock)(id, NSUInteger, BOOL *);
|
||||||
if (self) {
|
if (self) {
|
||||||
life = [TOCCancelTokenSource new];
|
life = [TOCCancelTokenSource new];
|
||||||
observableContactsController = [ObservableValueController observableValueControllerWithInitialValue:nil];
|
observableContactsController = [ObservableValueController observableValueControllerWithInitialValue:nil];
|
||||||
|
latestContactsById = @{};
|
||||||
}
|
}
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue