mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Various improvements
This commit is contained in:
@@ -602,7 +602,11 @@ public final class WebAppController: ViewController, AttachmentContainable {
|
||||
})
|
||||
if let navigationController = strongSelf.controller?.getNavigationController() {
|
||||
let checkoutController = BotCheckoutController(context: strongSelf.context, invoice: invoice, source: .slug(slug), inputData: inputData, completed: { currencyValue, receiptMessageId in
|
||||
|
||||
self?.sendInvoiceClosedEvent(slug: slug, result: .paid)
|
||||
}, cancelled: { [weak self] in
|
||||
self?.sendInvoiceClosedEvent(slug: slug, result: .cancelled)
|
||||
}, failed: { [weak self] in
|
||||
self?.sendInvoiceClosedEvent(slug: slug, result: .failed)
|
||||
})
|
||||
checkoutController.navigationPresentation = .modal
|
||||
navigationController.pushViewController(checkoutController)
|
||||
|
||||
Reference in New Issue
Block a user