Various improvements

This commit is contained in:
Ilya Laktyushin
2025-04-06 15:04:29 +04:00
parent 6ae44df975
commit 2242097992
4 changed files with 78 additions and 85 deletions

View File

@@ -1062,9 +1062,7 @@ public final class WebAppController: ViewController, AttachmentContainable {
case "web_app_open_tg_link":
if let json = json, let path = json["path_full"] as? String {
let forceRequest = json["force_request"] as? Bool ?? false
controller.openUrl("https://t.me\(path)", false, forceRequest, { [weak controller] in
let _ = controller
// controller?.dismiss()
controller.openUrl("https://t.me\(path)", false, forceRequest, {
})
}
case "web_app_open_invoice":