[WIP] Suggested posts

This commit is contained in:
Isaac
2025-06-17 17:07:56 +04:00
parent ab470b6be7
commit 55c7b6551f
18 changed files with 370 additions and 98 deletions

View File

@@ -4464,11 +4464,6 @@ class ChatControllerNode: ASDisplayNode, ASScrollViewDelegate {
}
func sendCurrentMessage(silentPosting: Bool? = nil, scheduleTime: Int32? = nil, postpone: Bool = false, messageEffect: ChatSendMessageEffect? = nil, completion: @escaping () -> Void = {}) {
if let postSuggestionState = self.chatPresentationInterfaceState.interfaceState.postSuggestionState, postSuggestionState.price == 0 {
self.interfaceInteraction?.presentSuggestPostOptions()
return
}
if let textInputPanelNode = self.inputPanelNode as? ChatTextInputPanelNode {
self.historyNode.justSentTextMessage = true