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:
Peter
2018-11-18 23:32:07 +03:00
parent b7030dd3ad
commit 7d41be5cb1
16 changed files with 1517 additions and 1358 deletions

View File

@@ -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))