mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Continue Last Thread fix
This commit is contained in:
parent
a8a308d7a6
commit
6c37615dbd
1 changed files with 15 additions and 2 deletions
|
|
@ -4877,8 +4877,21 @@ public class ChatMessageBubbleItemNode: ChatMessageItemView, ChatMessagePreviewI
|
|||
if actionButtonsNode !== strongSelf.actionButtonsNode {
|
||||
strongSelf.actionButtonsNode = actionButtonsNode
|
||||
actionButtonsNode.buttonPressed = { [weak strongSelf] button, progress in
|
||||
if let strongSelf = strongSelf {
|
||||
strongSelf.performMessageButtonAction(button: button, progress: progress)
|
||||
if let strongSelf, let item = strongSelf.item {
|
||||
if item.content.firstMessageAttributes.displayContinueThreadFooter {
|
||||
var hasMarkup = false
|
||||
for attribute in item.message.attributes {
|
||||
if let attribute = attribute as? ReplyMarkupMessageAttribute, attribute.flags.contains(.inline), !attribute.rows.isEmpty {
|
||||
hasMarkup = true
|
||||
}
|
||||
}
|
||||
|
||||
if !hasMarkup {
|
||||
item.controllerInteraction.updateChatLocationThread(item.message.threadId, nil)
|
||||
return
|
||||
}
|
||||
strongSelf.performMessageButtonAction(button: button, progress: progress)
|
||||
}
|
||||
}
|
||||
}
|
||||
actionButtonsNode.buttonLongTapped = { [weak strongSelf] button in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue