mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Fix build
This commit is contained in:
@@ -1104,7 +1104,7 @@ public final class WebAppController: ViewController, AttachmentContainable {
|
|||||||
if result {
|
if result {
|
||||||
sendEvent(true)
|
sendEvent(true)
|
||||||
} else {
|
} else {
|
||||||
controller.present(textAlertController(context: self.context, updatedPresentationData: controller.updatedPresentationData, title: "Allow Sending Messages", text: "Allow \(controller.botName) to send messages?", actions: [TextAlertAction(type: .genericAction, title: self.presentationData.strings.Common_Cancel, action: {
|
controller.present(textAlertController(context: self.context, updatedPresentationData: controller.updatedPresentationData, title: "Allow Sending Messages?", text: "Allow \(controller.botName) to send messages?", actions: [TextAlertAction(type: .genericAction, title: self.presentationData.strings.Common_Cancel, action: {
|
||||||
sendEvent(false)
|
sendEvent(false)
|
||||||
}), TextAlertAction(type: .defaultAction, title: self.presentationData.strings.Common_OK, action: { [weak self] in
|
}), TextAlertAction(type: .defaultAction, title: self.presentationData.strings.Common_OK, action: { [weak self] in
|
||||||
guard let self else {
|
guard let self else {
|
||||||
@@ -1112,8 +1112,8 @@ public final class WebAppController: ViewController, AttachmentContainable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let _ = (self.context.engine.messages.allowBotSendMessages(botId: controller.botId)
|
let _ = (self.context.engine.messages.allowBotSendMessages(botId: controller.botId)
|
||||||
|> deliverOnMainQueue).start(next: { result in
|
|> deliverOnMainQueue).start(completed: {
|
||||||
sendEvent(result)
|
sendEvent(true)
|
||||||
})
|
})
|
||||||
})]), in: .window(.root))
|
})]), in: .window(.root))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user