m.replace (edit) event content #31

Open
opened 2026-09-13 02:25:45 +03:00 by wasilius · 0 comments
Member

Summary: redacted message has been disappeared in Element; Cinny reports "unsupported message". Nheko is OK.

  1. sent a message, then edited it via Element UI.
    curl -s "https://dev1.bromal.im/_matrix/client/v3/rooms/$ROOM_ID/messages?dir=b&limit=3"
    -H "Authorization: Bearer $TOKEN"

Relevant event content (edit event):
{
"body": "* Это сообщение будет отредактировано. Оно уже отредактировано.",
"m.relates_to": {
"event_id": "$/CAf9qN95BNKSWTE2UNLkGNYIeh6jfn7yv7qYgbqI18",
"rel_type": "m.replace"
},
"m.mentions": {},
"msgtype": "m.text"
}

Original message content (for reference, same API call):

{
"body": "Это сообщение будет отредактировано.",
"m.mentions": {},
"msgtype": "m.text"
}

No m.new_content field present anywhere in the edit event's content object
(full content object shown above, nothing omitted).

  1. viewed the edited message in each client.
  • Element: message disappeared / not shown in timeline;
  • Cinny: shown in red with text "unsupported message";
  • Nheko: displayed correctly, with the leading "* " stripped, showing the new text.
Summary: redacted message has been disappeared in Element; Cinny reports "unsupported message". Nheko is OK. 1) sent a message, then edited it via Element UI. curl -s "https://dev1.bromal.im/_matrix/client/v3/rooms/$ROOM_ID/messages?dir=b&limit=3" \ -H "Authorization: Bearer $TOKEN" Relevant event content (edit event): { "body": "* Это сообщение будет отредактировано. Оно уже отредактировано.", "m.relates_to": { "event_id": "$/CAf9qN95BNKSWTE2UNLkGNYIeh6jfn7yv7qYgbqI18", "rel_type": "m.replace" }, "m.mentions": {}, "msgtype": "m.text" } Original message content (for reference, same API call): { "body": "Это сообщение будет отредактировано.", "m.mentions": {}, "msgtype": "m.text" } No `m.new_content` field present anywhere in the edit event's content object (full content object shown above, nothing omitted). 2) viewed the edited message in each client. - Element: message disappeared / not shown in timeline; - Cinny: shown in red with text "unsupported message"; - Nheko: displayed correctly, with the leading "* " stripped, showing the new text.
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
main/bromal#31
No description provided.