Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Synapse does not bundle m.replace aggregations for events other than m.room.message #12503

@richvdh

Description

@richvdh

Per MSC2675, when the server returns an event, it is supposed to bundle the aggregation of any related events into the response.

This includes m.replace relations: for an m.room.message event, /context/$original_event_id might return:

{
  "event": {
    ...
    "event_id": "$original_event_id",
    "type": "m.room.message",
    "unsigned": {
      "m.relations": {
        "m.replace": {
          "event_id": "$replacement_event_id",
          "origin_server_ts": 1650390324643,
          "sender": "@richvdh:matrix.org"
        }
      }
    },
    "user_id": "@richvdh:matrix.org"
  }
}

However, for other event types, no m.replace aggregation is returned.

It's not as if m.room.message is the only event type you can edit (consider, for example, encrypted events), so this seems odd.

Metadata

Metadata

Assignees

Labels

A-Spec-Complianceplaces where synapse does not conform to the specP3(OBSOLETE: use S- labels.) Approved backlog: not yet scheduled, will accept patchesS-MinorBlocks non-critical functionality, workarounds exist.T-DefectBugs, crashes, hangs, security vulnerabilities, or other reported issues.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions