Various Improvements

This commit is contained in:
Ilya Laktyushin
2022-04-23 05:28:29 +04:00
parent e3dc5cbe8a
commit 71bde57b6a
90 changed files with 1757 additions and 297 deletions

View File

@@ -99,6 +99,10 @@ final class AuthorizationSequenceCodeEntryController: ViewController {
self.controllerNode.activateInput()
}
func resetCode() {
self.controllerNode.resetCode()
}
func updateData(number: String, codeType: SentAuthorizationCodeType, nextType: AuthorizationCodeNextType?, timeout: Int32?, termsOfService: (UnauthorizedAccountTermsOfService, Bool)?) {
self.termsOfService = termsOfService
if self.data?.0 != number || self.data?.1 != codeType || self.data?.2 != nextType || self.data?.3 != timeout {
@@ -143,7 +147,7 @@ final class AuthorizationSequenceCodeEntryController: ViewController {
}
if self.controllerNode.currentCode.count < minimalCodeLength {
hapticFeedback.error()
self.hapticFeedback.error()
self.controllerNode.animateError()
} else {
self.continueWithCode(self.controllerNode.currentCode)