Refactor wallet-related modules

This commit is contained in:
Peter
2019-10-08 14:30:24 +04:00
parent 5fed1fbeb1
commit d2c54825f0
230 changed files with 4534 additions and 2435 deletions

View File

@@ -218,10 +218,7 @@ func logoutOptionsController(context: AccountContext, navigationController: Navi
presentControllerImpl?(alertController, nil)
})
let hasWallets = availableWallets(postbox: context.account.postbox)
|> map { wallets in
return !wallets.wallets.isEmpty
}
let hasWallets = context.hasWallets
let signal = combineLatest(queue: .mainQueue(),
context.sharedContext.presentationData,