forked from mirror/mautrix-discord
Add new field to reactions
This commit is contained in:
parent
6738a04715
commit
2937c3ea2e
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue