Updated code input

This commit is contained in:
Ali
2021-11-24 00:42:18 +04:00
parent 313dca7e41
commit 42b5d07888
14 changed files with 683 additions and 140 deletions

View File

@@ -102,9 +102,10 @@ final class AuthorizationSequenceCodeEntryController: ViewController {
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 {
if case .otherSession = codeType {
switch codeType {
case .otherSession, .missedCall:
self.title = number
} else {
default:
self.title = nil
}
self.data = (number, codeType, nextType, timeout)