Chat links and other features

This commit is contained in:
Isaac
2024-03-23 00:00:08 +04:00
parent 5e0269e5ec
commit ef12bf9ce6
95 changed files with 32174 additions and 26700 deletions

View File

@@ -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
}