|
|
|
@ -310,8 +310,7 @@ NSString *const kSelectRecipientViewControllerCellIdentifier = @"kSelectRecipien
|
|
|
|
|
[ModalActivityIndicatorViewController
|
|
|
|
|
presentFromViewController:self
|
|
|
|
|
canCancel:YES
|
|
|
|
|
presentCompletion:^(ModalActivityIndicatorViewController *modalActivityIndicator) {
|
|
|
|
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
|
|
|
backgroundBlock:^(ModalActivityIndicatorViewController *modalActivityIndicator) {
|
|
|
|
|
[[ContactsUpdater sharedUpdater] lookupIdentifiers:possiblePhoneNumbers
|
|
|
|
|
success:^(NSArray<SignalRecipient *> *recipients) {
|
|
|
|
|
OWSAssert([NSThread isMainThread]);
|
|
|
|
@ -336,14 +335,12 @@ NSString *const kSelectRecipientViewControllerCellIdentifier = @"kSelectRecipien
|
|
|
|
|
[modalActivityIndicator
|
|
|
|
|
dismissViewControllerAnimated:NO
|
|
|
|
|
completion:^{
|
|
|
|
|
[OWSAlerts
|
|
|
|
|
showAlertWithTitle:
|
|
|
|
|
[OWSAlerts showAlertWithTitle:
|
|
|
|
|
NSLocalizedString(@"ALERT_ERROR_TITLE",
|
|
|
|
|
@"Title for a generic error alert.")
|
|
|
|
|
message:error.localizedDescription];
|
|
|
|
|
}];
|
|
|
|
|
}];
|
|
|
|
|
});
|
|
|
|
|
}];
|
|
|
|
|
} else {
|
|
|
|
|
NSString *recipientId = possiblePhoneNumbers[0];
|
|
|
|
|