Add option to disable custom emoji reactions

This commit is contained in:
Tulir Asokan
2023-01-27 21:23:10 +02:00
parent 039764e081
commit 09a94010d8
4 changed files with 9 additions and 0 deletions

View File

@@ -1522,6 +1522,10 @@ func (portal *Portal) handleDiscordReaction(user *User, reaction *discordgo.Mess
extraContent["fi.mau.discord.reaction"] = map[string]any{
"id": reaction.Emoji.ID,
"name": reaction.Emoji.Name,
"mxc": matrixReaction,
}
if !portal.bridge.Config.Bridge.CustomEmojiReactions {
content.RelatesTo.Key = fmt.Sprintf(":%s:", reaction.Emoji.Name)
}
}