|
|
@ -107,7 +107,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
canCancel:NO
|
|
|
|
canCancel:NO
|
|
|
|
backgroundBlock:^(ModalActivityIndicatorViewController *modalActivityIndicator) {
|
|
|
|
backgroundBlock:^(ModalActivityIndicatorViewController *modalActivityIndicator) {
|
|
|
|
OWSProdInfo([OWSAnalyticsEvents registrationRegisteringCode]);
|
|
|
|
OWSProdInfo([OWSAnalyticsEvents registrationRegisteringCode]);
|
|
|
|
[self.accountManager registerObjcWithVerificationCode:self.verificationCode pin:pinCode]
|
|
|
|
[[self.accountManager registerObjcWithVerificationCode:self.verificationCode pin:pinCode]
|
|
|
|
.then(^{
|
|
|
|
.then(^{
|
|
|
|
OWSAssertIsOnMainThread();
|
|
|
|
OWSAssertIsOnMainThread();
|
|
|
|
OWSProdInfo([OWSAnalyticsEvents registrationRegisteringSubmittedCode]);
|
|
|
|
OWSProdInfo([OWSAnalyticsEvents registrationRegisteringSubmittedCode]);
|
|
|
@ -130,7 +130,8 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
[modalActivityIndicator dismissWithCompletion:^{
|
|
|
|
[modalActivityIndicator dismissWithCompletion:^{
|
|
|
|
OWSAssertIsOnMainThread();
|
|
|
|
OWSAssertIsOnMainThread();
|
|
|
|
|
|
|
|
|
|
|
|
[OWSAlerts showAlertWithTitle:NSLocalizedString(
|
|
|
|
[OWSAlerts
|
|
|
|
|
|
|
|
showAlertWithTitle:NSLocalizedString(
|
|
|
|
@"REGISTER_2FA_REGISTRATION_FAILED_ALERT_TITLE",
|
|
|
|
@"REGISTER_2FA_REGISTRATION_FAILED_ALERT_TITLE",
|
|
|
|
@"Title for alert indicating that attempt to "
|
|
|
|
@"Title for alert indicating that attempt to "
|
|
|
|
@"register with 'two-factor auth' failed.")
|
|
|
|
@"register with 'two-factor auth' failed.")
|
|
|
@ -139,7 +140,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
[weakSelf.entryView makePinTextFieldFirstResponder];
|
|
|
|
[weakSelf.entryView makePinTextFieldFirstResponder];
|
|
|
|
}];
|
|
|
|
}];
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}) retainUntilComplete];
|
|
|
|
}];
|
|
|
|
}];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|