Various improvements

This commit is contained in:
Ilya Laktyushin
2024-05-25 16:09:51 +04:00
parent bb5789234c
commit 4d6810c5c0
16 changed files with 149 additions and 56 deletions

View File

@@ -864,8 +864,7 @@ public final class WebAppController: ViewController, AttachmentContainable {
|> `catch` { _ -> Signal<BotCheckoutController.InputData?, NoError> in
return .single(nil)
})
if invoice.currency == "XTR" {
let starsContext = strongSelf.context.engine.payments.peerStarsContext(peerId: strongSelf.context.account.peerId)
if invoice.currency == "XTR", let starsContext = strongSelf.context.starsContext {
let starsInputData = combineLatest(
inputData.get(),
starsContext.state