Add hasWalletAccess

This commit is contained in:
Peter
2019-10-17 12:27:55 +04:00
parent 0514af167b
commit 65a6af7226
3 changed files with 19 additions and 8 deletions

View File

@@ -1169,14 +1169,7 @@ public func settingsController(context: AccountContext, accountManager: AccountM
let hasWallet = contextValue.get()
|> mapToSignal { context in
return context.account.postbox.preferencesView(keys: [PreferencesKeys.appConfiguration])
|> map { view -> Bool in
if #available(iOSApplicationExtension 10.3, iOS 10.3, *) {
return true
} else {
return false
}
}
return context.hasWalletAccess
}
let hasPassport = ValuePromise<Bool>(false)