mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-04 18:41:00 +00:00
Fix context menu on grouped messages
This commit is contained in:
parent
b313383e5e
commit
2e20138a3c
@ -26,7 +26,7 @@ final class ChatMessageContextControllerContentSource: ContextControllerContentS
|
||||
guard let item = itemNode.item else {
|
||||
return
|
||||
}
|
||||
if item.message.stableId == self.message.stableId, let contentNode = itemNode.getMessageContextSourceNode() {
|
||||
if item.content.contains(where: { $0.stableId == self.message.stableId }), let contentNode = itemNode.getMessageContextSourceNode() {
|
||||
result = ContextControllerTakeViewInfo(contentContainingNode: contentNode, contentAreaInScreenSpace: chatNode.convert(chatNode.frameForVisibleArea(), to: nil))
|
||||
}
|
||||
}
|
||||
@ -46,7 +46,7 @@ final class ChatMessageContextControllerContentSource: ContextControllerContentS
|
||||
guard let item = itemNode.item else {
|
||||
return
|
||||
}
|
||||
if item.message.stableId == self.message.stableId {
|
||||
if item.content.contains(where: { $0.stableId == self.message.stableId }) {
|
||||
result = ContextControllerPutBackViewInfo(contentAreaInScreenSpace: chatNode.convert(chatNode.frameForVisibleArea(), to: nil))
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user