Fix device location request

This commit is contained in:
Ilya Laktyushin
2024-11-30 01:28:53 +04:00
parent b8b0836d75
commit 685ed2cc9e

View File

@@ -2790,7 +2790,7 @@ public final class WebAppController: ViewController, AttachmentContainable {
}, openSettings: {
context.sharedContext.applicationBindings.openSettings()
}, { [weak self, weak controller] authorized in
guard let controller else {
guard let controller, authorized else {
return
}
let context = controller.context
@@ -2849,7 +2849,7 @@ public final class WebAppController: ViewController, AttachmentContainable {
TelegramEngine.EngineData.Item.Peer.Peer(id: context.account.peerId),
TelegramEngine.EngineData.Item.Peer.Peer(id: botId)
)
|> deliverOnMainQueue).start(next: { [weak self, weak controller] accountPeer, botPeer in
|> deliverOnMainQueue).start(next: { [weak self, weak controller] accountPeer, botPeer in
guard let accountPeer, let botPeer, let controller else {
return
}