Various improvements

This commit is contained in:
Ilya Laktyushin
2020-11-04 21:12:12 +04:00
parent bc793ac286
commit f306171529
53 changed files with 5608 additions and 4579 deletions

View File

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