Add new field to reactions

This commit is contained in:
Tulir Asokan 2023-05-06 21:43:57 +03:00
parent 6738a04715
commit 2937c3ea2e

View file

@ -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
}
}