mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
[WIP] Post suggestions
This commit is contained in:
@@ -4286,6 +4286,7 @@ class ChatControllerNode: ASDisplayNode, ASScrollViewDelegate {
|
||||
}
|
||||
|
||||
var postEmptyMessages = false
|
||||
var isPostSuggestions = false
|
||||
if case let .customChatContents(customChatContents) = self.chatPresentationInterfaceState.subject {
|
||||
switch customChatContents.kind {
|
||||
case .hashTagSearch:
|
||||
@@ -4294,8 +4295,11 @@ class ChatControllerNode: ASDisplayNode, ASScrollViewDelegate {
|
||||
break
|
||||
case .businessLinkSetup:
|
||||
postEmptyMessages = true
|
||||
case .postSuggestions:
|
||||
isPostSuggestions = true
|
||||
}
|
||||
}
|
||||
let _ = isPostSuggestions
|
||||
|
||||
if !messages.isEmpty, let messageEffect {
|
||||
messages[0] = messages[0].withUpdatedAttributes { attributes in
|
||||
|
||||
Reference in New Issue
Block a user