mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
Updated auth code entry UI
Fixed music playback panel glitches Added ability to display more than 100 message search results Fixed instagram videos playback
This commit is contained in:
@@ -296,6 +296,12 @@ public final class AuthorizationSequenceController: NavigationController {
|
||||
text = strongSelf.strings.Login_InvalidCodeError
|
||||
case .generic:
|
||||
text = strongSelf.strings.Login_UnknownError
|
||||
case .codeExpired:
|
||||
let account = strongSelf.account
|
||||
let _ = (strongSelf.account.postbox.transaction { transaction -> Void in
|
||||
transaction.setState(UnauthorizedAccountState(isTestingEnvironment: account.testingEnvironment, masterDatacenterId: account.masterDatacenterId, contents: .empty))
|
||||
}).start()
|
||||
return
|
||||
}
|
||||
|
||||
controller.present(standardTextAlertController(theme: AlertControllerTheme(authTheme: strongSelf.theme), title: nil, text: text, actions: [TextAlertAction(type: .defaultAction, title: strongSelf.strings.Common_OK, action: {})]), in: .window(.root))
|
||||
|
||||
Reference in New Issue
Block a user