diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2023-02-28 18:49:28 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-28 18:49:28 +0000 |
commit | 2b78981736f9004f99b1760e3e77b234f92755a7 (patch) | |
tree | cd2b98d97df09a663fec267da4130cafd0ceb377 /synapse/storage/databases/main/events.py | |
parent | Merge branch 'master' into develop (diff) | |
download | synapse-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/storage/databases/main/events.py')
-rw-r--r-- | synapse/storage/databases/main/events.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/synapse/storage/databases/main/events.py b/synapse/storage/databases/main/events.py index 73b8aea16c..a8a4ed4436 100644 --- a/synapse/storage/databases/main/events.py +++ b/synapse/storage/databases/main/events.py @@ -2024,10 +2024,6 @@ class PersistEventsStore: self.store._invalidate_cache_and_stream( txn, self.store.get_relations_for_event, (redacted_relates_to,) ) - if rel_type == RelationTypes.ANNOTATION: - self.store._invalidate_cache_and_stream( - txn, self.store.get_aggregation_groups_for_event, (redacted_relates_to,) - ) if rel_type == RelationTypes.REFERENCE: self.store._invalidate_cache_and_stream( txn, self.store.get_references_for_event, (redacted_relates_to,) |