mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix
This commit is contained in:
parent
85b7ecac14
commit
1a89986990
@ -17,6 +17,7 @@ import TelegramNotices
|
||||
extension ChatControllerImpl {
|
||||
func presentPaidMessageAlertIfNeeded(count: Int32 = 1, forceDark: Bool = false, completion: @escaping (Bool) -> Void) {
|
||||
guard let peer = self.presentationInterfaceState.renderedPeer?.peer.flatMap(EnginePeer.init) else {
|
||||
completion(false)
|
||||
return
|
||||
}
|
||||
if let sendPaidMessageStars = self.presentationInterfaceState.sendPaidMessageStars {
|
||||
@ -71,6 +72,8 @@ extension ChatControllerImpl {
|
||||
self.present(controller, in: .window(.root))
|
||||
}
|
||||
})
|
||||
} else {
|
||||
completion(false)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user