matrixfmt: add support for sending pre-bridged custom emojis in text

This commit is contained in:
Tulir Asokan
2026-03-29 14:25:23 +03:00
parent 5d05d7ab05
commit b6aff6784f
6 changed files with 31 additions and 5 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ func (s Style) Format(message string) string {
return s.EmojiInfo.Emoji
} else if s.EmojiInfo.EmojiURI != "" {
return fmt.Sprintf(
`<img data-mx-emoticon data-mau-animated-emoji src="%s" height="32" width="32" alt="%s" title="%s"/>`,
`<img data-mx-emoticon src="%s" height="32" width="32" alt="%s" title="%s"/>`,
s.EmojiInfo.EmojiURI, message, message,
)
}