From fcc9b50d25f4a474e01b73b3a9372afb45fb384b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20G=C3=B3mez?= Date: Tue, 31 Mar 2026 22:21:35 +0200 Subject: [PATCH] fix: pick oldest emoji tag --- src/components/chat/MessageReactions.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/components/chat/MessageReactions.tsx b/src/components/chat/MessageReactions.tsx index c6d6711..4df1b74 100644 --- a/src/components/chat/MessageReactions.tsx +++ b/src/components/chat/MessageReactions.tsx @@ -116,6 +116,13 @@ export function MessageReactions({ messageId, relays }: MessageReactionsProps) { existing.count++; existing.pubkeys.push(reaction.pubkey); } + // Prefer oldest event's emoji tag (timeline is newest-first, so + // later iterations are older). Some clients copy the shortcode + // content but omit the emoji tag, so keep overwriting until we + // reach the oldest event that has the full tag. + if (customEmoji) { + existing.customEmoji = customEmoji; + } } else { map.set(emojiKey, { emoji: content,