mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Various improvements [skip ci]
This commit is contained in:
@@ -99,7 +99,17 @@ func inputPanelForChatPresentationIntefaceState(_ chatPresentationInterfaceState
|
||||
}
|
||||
}
|
||||
|
||||
if chatPresentationInterfaceState.isPremiumRequiredForMessaging {
|
||||
if let _ = chatPresentationInterfaceState.sendPaidMessageStars, !chatPresentationInterfaceState.acknowledgedPaidMessage {
|
||||
if let currentPanel = (currentPanel as? ChatStarsRequiredInputPanelNode) ?? (currentSecondaryPanel as? ChatStarsRequiredInputPanelNode) {
|
||||
currentPanel.interfaceInteraction = interfaceInteraction
|
||||
return (currentPanel, nil)
|
||||
} else {
|
||||
let panel = ChatStarsRequiredInputPanelNode(theme: chatPresentationInterfaceState.theme)
|
||||
panel.context = context
|
||||
panel.interfaceInteraction = interfaceInteraction
|
||||
return (panel, nil)
|
||||
}
|
||||
} else if chatPresentationInterfaceState.isPremiumRequiredForMessaging {
|
||||
if let currentPanel = (currentPanel as? ChatPremiumRequiredInputPanelNode) ?? (currentSecondaryPanel as? ChatPremiumRequiredInputPanelNode) {
|
||||
currentPanel.interfaceInteraction = interfaceInteraction
|
||||
return (currentPanel, nil)
|
||||
|
||||
Reference in New Issue
Block a user