Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Matrix emoji to Discord (<img> in formatted_body) #145

Open
North-West-Wind opened this issue Jun 1, 2024 · 0 comments
Open

Custom Matrix emoji to Discord (<img> in formatted_body) #145

North-West-Wind opened this issue Jun 1, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@North-West-Wind
Copy link

Some clients (Cinny, FluffyChat) support custom emojis. These emojis are sent as <img data-mx-emoticon> with a mxc:// for src. If a message only contains these custom emojis, the bridge reports that the message is empty.

Will it possible to send this as a custom emoji, or at least send it as a small image (sort of like Freemoji plugin for BetterDiscord)?

This is an example on Cinny:
Screenshot_2024-06-01-20-28-49-950_org mozilla fenix-edit

Source code of message:

{
  "type": "m.room.message",
  "sender": "@northwestwind:matrix.northwestw.in",
  "content": {
    "msgtype": "m.text",
    "body": ":yay:",
    "format": "org.matrix.custom.html",
    "formatted_body": "<img data-mx-emoticon src=\"mxc://matrix.northwestw.in/RxXgxwJZWMtkCHeLLorjvgDo\" alt=\"yay\" title=\"yay\" height=\"32\" />"
  },
  "origin_server_ts": 1717244354035,
  "unsigned": {
    "age": 52,
    "transaction_id": "m1717244353402.2"
  },
  "event_id": "$s7C-XjMNF-LGIq0cbQ7S5mlao-ktS5kdQAy1WWqZHrg",
  "room_id": "!CNKIOxQxymmMmNJjeo:matrix.org"
}
@North-West-Wind North-West-Wind added the enhancement New feature or request label Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant