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

Loading…
Cancel
Save