Unneeded formatted-body being added to message content #233

Open
opened 2025-10-14 15:43:22 -06:00 by navan · 0 comments
Owner

Originally created by @photosheep on 7/7/2024

This was discussed in the iamb-users room.

"content": {
  "body": "this is fractal",
  "msgtype": "m.text"
}
"content": {
  "body": "this is iamb",
  "format": "org.matrix.custom.html",
  "formatted_body": "<p>this is iamb</p>\n",
  "msgtype": "m.text"
}

Some clients apparently do not render this properly.
Fractal and cinny do not send a formatted_body unless required. It may be worth checking the content of the body before formatting it.

*Originally created by @photosheep on 7/7/2024* This was discussed in the iamb-users room. ``` json "content": { "body": "this is fractal", "msgtype": "m.text" } ``` ``` json "content": { "body": "this is iamb", "format": "org.matrix.custom.html", "formatted_body": "<p>this is iamb</p>\n", "msgtype": "m.text" } ``` Some clients apparently do not render this properly. Fractal and cinny do not send a formatted_body unless required. It may be worth checking the content of the body before formatting it.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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: github/iamb#233
No description provided.