summary refs log tree commit diff
path: root/synapse/events
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2023-02-28 18:49:28 +0000
committerGitHub <noreply@github.com>2023-02-28 18:49:28 +0000
commit2b78981736f9004f99b1760e3e77b234f92755a7 (patch)
treecd2b98d97df09a663fec267da4130cafd0ceb377 /synapse/events
parentMerge branch 'master' into develop (diff)
downloadsynapse-2b78981736f9004f99b1760e3e77b234f92755a7.tar.xz
Remove support for aggregating reactions (#15172)
It turns out that no clients rely on server-side aggregation of `m.annotation`
relationships: it's just not very useful as currently implemented.

It's also non-trivial to calculate.

I want to remove it from MSC2677, so to keep the implementation in line, let's
remove it here.
Diffstat (limited to 'synapse/events')
-rw-r--r--synapse/events/utils.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/synapse/events/utils.py b/synapse/events/utils.py
index ebf8c7ed83..eaa6cad4af 100644
--- a/synapse/events/utils.py
+++ b/synapse/events/utils.py
@@ -516,11 +516,6 @@ class EventClientSerializer:
         # being serialized.
         serialized_aggregations = {}
 
-        if event_aggregations.annotations:
-            serialized_aggregations[
-                RelationTypes.ANNOTATION
-            ] = event_aggregations.annotations
-
         if event_aggregations.references:
             serialized_aggregations[
                 RelationTypes.REFERENCE