Various fixes

This commit is contained in:
Ilya Laktyushin
2023-10-29 18:43:32 +04:00
parent 138bc7d0ed
commit 974f135445
3 changed files with 17 additions and 12 deletions

View File

@@ -19179,7 +19179,12 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
guard let self, let message else {
return
}
if let controller = giveawayInfoController(context: self.context, updatedPresentationData: self.updatedPresentationData, message: message, giveawayInfo: giveawayInfo) {
if let controller = giveawayInfoController(context: self.context, updatedPresentationData: self.updatedPresentationData, message: message, giveawayInfo: giveawayInfo, openLink: { [weak self] slug in
guard let self else {
return
}
self.openResolved(result: .premiumGiftCode(slug: slug), sourceMessageId: messageId)
}) {
self.present(controller, in: .window(.root))
}
})