mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
Various improvements
This commit is contained in:
@@ -522,15 +522,15 @@ public func privacyAndSecurityController(context: AccountContext, initialSetting
|
||||
|
||||
let twoStepAuthDataValue = Promise<TwoStepVerificationAccessConfiguration?>(nil)
|
||||
let hasTwoStepAuthDataValue = twoStepAuthDataValue.get()
|
||||
|> map { data -> Bool? in
|
||||
|> mapToSignal { data -> Signal<Bool?, NoError> in
|
||||
if let data = data {
|
||||
if case .set = data {
|
||||
return true
|
||||
return .single(true)
|
||||
} else {
|
||||
return false
|
||||
return .single(false)
|
||||
}
|
||||
} else {
|
||||
return nil
|
||||
return .complete()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user