Disallow swipe to reply on comments head message

This commit is contained in:
Ilya Laktyushin
2023-03-02 18:53:41 +04:00
parent 400f11294d
commit 6149676d90
4 changed files with 20 additions and 0 deletions

View File

@@ -455,6 +455,11 @@ class ChatMessageAnimatedStickerItemNode: ChatMessageItemView {
if strongSelf.selectionNode != nil {
return false
}
if case let .replyThread(replyThreadMessage) = item.chatLocation, replyThreadMessage.isChannelPost, replyThreadMessage.messageId.peerId != item.content.firstMessage.id.peerId {
return false
}
let action = item.controllerInteraction.canSetupReply(item.message)
strongSelf.currentSwipeAction = action
if case .none = action {