Fix the way users are mentioned #4

Open
opened 2019-01-15 22:45:29 +00:00 by Dennis · 0 comments
Owner

Right now, users are mentioned only by their username:

"content": {
  "msgtype": "m.text",
  "body": "Hello @dennis:dennispotter.eu!"
}

This mentiones the user, but without additional make up. Therefore, it would be better to mention a user like this:

"content": {
  "formatted_body": "Hello <a href=\"https://matrix.to/#/@dennis:dennispotter.eu\">Dennis</a>",
  "msgtype": "m.text",
  "body": "Hello Dennis ",
  "format": "org.matrix.custom.html"
}
Right now, users are mentioned only by their username: ``` "content": { "msgtype": "m.text", "body": "Hello @dennis:dennispotter.eu!" } ``` This mentiones the user, but without additional make up. Therefore, it would be better to mention a user like this: ```json "content": { "formatted_body": "Hello <a href=\"https://matrix.to/#/@dennis:dennispotter.eu\">Dennis</a>", "msgtype": "m.text", "body": "Hello Dennis ", "format": "org.matrix.custom.html" } ```
Dennis self-assigned this 2019-01-15 22:45:29 +00:00
Dennis added the
enhancement
label 2019-01-15 22:45:29 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Dennis/plugable-matrix-bot#4
No description provided.