From 4968dcc8d24e383c1f4d19b045f50845346a5dee Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sun, 27 Oct 2024 12:49:37 +0200 Subject: [PATCH] web/emoji: wrap reaction shortcode in :: --- web/src/util/emoji/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/util/emoji/index.ts b/web/src/util/emoji/index.ts index 95af4ad..41cca07 100644 --- a/web/src/util/emoji/index.ts +++ b/web/src/util/emoji/index.ts @@ -118,7 +118,7 @@ export function emojiToReactionContent(emoji: PartialEmoji, evtID: EventID): Rea }, } if (emoji.u?.startsWith("mxc://") && emoji.n) { - content["com.beeper.reaction.shortcode"] = emoji.n + content["com.beeper.reaction.shortcode"] = `:${emoji.n}:` } return content }