mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Chat links and other features
This commit is contained in:
@@ -52,6 +52,19 @@ func titlePanelForChatPresentationInterfaceState(_ chatPresentationInterfaceStat
|
||||
return nil
|
||||
case .scheduledMessages, .pinnedMessages:
|
||||
inhibitTitlePanelDisplay = true
|
||||
case let .customChatContents(customChatContents):
|
||||
switch customChatContents.kind {
|
||||
case .quickReplyMessageInput:
|
||||
break
|
||||
case .businessLinkSetup:
|
||||
if let currentPanel = currentPanel as? ChatBusinessLinkTitlePanelNode {
|
||||
return currentPanel
|
||||
} else {
|
||||
let panel = ChatBusinessLinkTitlePanelNode(context: context)
|
||||
panel.interfaceInteraction = interfaceInteraction
|
||||
return panel
|
||||
}
|
||||
}
|
||||
default:
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user