diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2022-03-30 11:45:32 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-30 11:45:32 -0400 |
commit | c31c1091d4b591af0683e14363c5bf430b2f045e (patch) | |
tree | 60c53a63490bca0cad1180c674592a12cb2b36e8 /synapse/handlers | |
parent | Send device list updates to application services (MSC3202) - part 1 (#11881) (diff) | |
download | synapse-c31c1091d4b591af0683e14363c5bf430b2f045e.tar.xz |
Remove the unused and unstable `/aggregations` endpoint. (#12293)
This endpoint was removed from MSC2675 before it was approved. It is currently unspecified (even in any MSCs) and therefore subject to removal. It is not implemented by any known clients. This also changes the bundled aggregation format for `m.annotation`, which previously included pagination tokens for the `/aggregations` endpoint, which are no longer useful.
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/relations.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/synapse/handlers/relations.py b/synapse/handlers/relations.py index 73217d135d..b9497ff3f3 100644 --- a/synapse/handlers/relations.py +++ b/synapse/handlers/relations.py @@ -193,10 +193,8 @@ class RelationsHandler: annotations = await self._main_store.get_aggregation_groups_for_event( event_id, room_id ) - if annotations.chunk: - aggregations.annotations = await annotations.to_dict( - cast("DataStore", self) - ) + if annotations: + aggregations.annotations = {"chunk": annotations} references = await self._main_store.get_relations_for_event( event_id, event, room_id, RelationTypes.REFERENCE, direction="f" |