Retain code verification promise.

pull/1/head
Matthew Chen 7 years ago
parent 34bd618700
commit a9b4b06c8f

@ -281,7 +281,7 @@ NS_ASSUME_NONNULL_BEGIN
[self startActivityIndicator]; [self startActivityIndicator];
OWSProdInfo([OWSAnalyticsEvents registrationRegisteringCode]); OWSProdInfo([OWSAnalyticsEvents registrationRegisteringCode]);
__weak CodeVerificationViewController *weakSelf = self; __weak CodeVerificationViewController *weakSelf = self;
[self.accountManager registerWithVerificationCode:[self validationCodeFromTextField] pin:nil] [[self.accountManager registerWithVerificationCode:[self validationCodeFromTextField] pin:nil]
.then(^{ .then(^{
OWSProdInfo([OWSAnalyticsEvents registrationRegisteringSubmittedCode]); OWSProdInfo([OWSAnalyticsEvents registrationRegisteringSubmittedCode]);
@ -313,7 +313,7 @@ NS_ASSUME_NONNULL_BEGIN
[weakSelf.challengeTextField becomeFirstResponder]; [weakSelf.challengeTextField becomeFirstResponder];
} }
}); });
}); }) retainUntilComplete];
} }
- (void)verificationWasCompleted - (void)verificationWasCompleted

Loading…
Cancel
Save