From 2937c3ea2e057da3c1c405e1c913e005d4c36bc5 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sat, 6 May 2023 21:43:57 +0300 Subject: [PATCH] Add new field to reactions --- portal.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/portal.go b/portal.go index 4c237fa..15c7fea 100644 --- a/portal.go +++ b/portal.go @@ -1854,8 +1854,10 @@ func (portal *Portal) handleDiscordReaction(user *User, reaction *discordgo.Mess "name": reaction.Emoji.Name, "mxc": matrixReaction, } + wrappedShortcode := fmt.Sprintf(":%s:", reaction.Emoji.Name) + extraContent["com.beeper.reaction.shortcode"] = wrappedShortcode if !portal.bridge.Config.Bridge.CustomEmojiReactions { - content.RelatesTo.Key = fmt.Sprintf(":%s:", reaction.Emoji.Name) + content.RelatesTo.Key = wrappedShortcode } }