mautrix / telegram

A Matrix-Telegram hybrid puppeting/relaybot bridge
https://matrix.to/#/#telegram:maunium.net
GNU Affero General Public License v3.0
1.3k stars 172 forks source link

Replies cause unintended highlights #442

Open pacien opened 4 years ago

pacien commented 4 years ago

The message body field of reply messages contains the MXID of the original author, which triggers unintended mentions (https://github.com/matrix-org/matrix-doc/issues/2319).

As a temporary workaround until this gets fixed on Matrix's side, it could be nice to have an option to use the user's display name instead of their MXID, maybe by making the plaintext body format customisable.

i.e. making this possible

{
  "content": {
    "body": "> <Display name> message"
  }
}

instead of

{
  "content": {
    "body": "> <@username:domain> message"
  }
}
pacien commented 4 years ago

Apparently mautrix-telegram is already using display names but only for replies to messages from other Telegram users. Replies to messages from Matrix users contain the MXID instead of the display name.