mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Various improvements
This commit is contained in:
@@ -877,7 +877,19 @@ public final class WebAppController: ViewController, AttachmentContainable {
|
||||
}
|
||||
}
|
||||
let _ = (starsInputData |> filter { $0 != nil } |> take(1) |> deliverOnMainQueue).start(next: { _ in
|
||||
let controller = strongSelf.context.sharedContext.makeStarsTransferScreen(context: strongSelf.context, starsContext: starsContext, invoice: invoice, source: .slug(slug), inputData: starsInputData)
|
||||
let controller = strongSelf.context.sharedContext.makeStarsTransferScreen(
|
||||
context: strongSelf.context,
|
||||
starsContext: starsContext,
|
||||
invoice: invoice,
|
||||
source: .slug(slug),
|
||||
inputData: starsInputData,
|
||||
completion: { [weak self] paid in
|
||||
guard let self else {
|
||||
return
|
||||
}
|
||||
self?.sendInvoiceClosedEvent(slug: slug, result: paid ? .paid : .cancelled)
|
||||
}
|
||||
)
|
||||
navigationController.pushViewController(controller)
|
||||
})
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user