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

@@ -1765,6 +1765,15 @@ public final class ChatEntityKeyboardInputNode: ChatInputNode {
if !emojiEnabled && interfaceState.interfaceState.editMessage == nil {
emojiContent = nil
}
if case let .customChatContents(customChatContents) = interfaceState.subject {
switch customChatContents.kind {
case .quickReplyMessageInput:
break
case .businessLinkSetup:
stickerContent = nil
gifContent = nil
}
}
stickerContent?.inputInteractionHolder.inputInteraction = self.stickerInputInteraction
self.currentInputData.emoji?.inputInteractionHolder.inputInteraction = self.emojiInputInteraction