mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-29 19:35:08 +00:00
Add missing reaction bar to messages with comments
This commit is contained in:
parent
5eac82de2b
commit
e281c50ebf
@ -249,6 +249,11 @@ private func contentNodeMessagesAndClassesForItem(_ item: ChatMessageItem) -> ([
|
|||||||
result.append((firstMessage, ChatMessageReactionsFooterContentNode.self, ChatMessageEntryAttributes(), BubbleItemAttributes(isAttachment: true, neighborType: .freeform, neighborSpacing: .default)))
|
result.append((firstMessage, ChatMessageReactionsFooterContentNode.self, ChatMessageEntryAttributes(), BubbleItemAttributes(isAttachment: true, neighborType: .freeform, neighborSpacing: .default)))
|
||||||
needReactions = false
|
needReactions = false
|
||||||
} else if result.last?.1 == ChatMessageCommentFooterContentNode.self {
|
} else if result.last?.1 == ChatMessageCommentFooterContentNode.self {
|
||||||
|
if result[result.count - 2].1 == ChatMessageWebpageBubbleContentNode.self ||
|
||||||
|
result[result.count - 2].1 == ChatMessagePollBubbleContentNode.self ||
|
||||||
|
result[result.count - 2].1 == ChatMessageContactBubbleContentNode.self {
|
||||||
|
result.insert((firstMessage, ChatMessageReactionsFooterContentNode.self, ChatMessageEntryAttributes(), BubbleItemAttributes(isAttachment: true, neighborType: .freeform, neighborSpacing: .default)), at: result.count - 1)
|
||||||
|
}
|
||||||
/*if result[result.count - 2].1 == ChatMessageTextBubbleContentNode.self {
|
/*if result[result.count - 2].1 == ChatMessageTextBubbleContentNode.self {
|
||||||
} else {
|
} else {
|
||||||
result.insert((firstMessage, ChatMessageReactionsFooterContentNode.self, ChatMessageEntryAttributes(), BubbleItemAttributes(isAttachment: true, neighborType: .freeform, neighborSpacing: .default)), at: result.count - 1)
|
result.insert((firstMessage, ChatMessageReactionsFooterContentNode.self, ChatMessageEntryAttributes(), BubbleItemAttributes(isAttachment: true, neighborType: .freeform, neighborSpacing: .default)), at: result.count - 1)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user