mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Updated code input
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user