diff options
author | Erik Johnston <erikj@element.io> | 2024-05-29 12:57:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-29 12:57:10 +0100 |
commit | 726006cdf2dfea3bcac9f6e0e912646b1751bdb7 (patch) | |
tree | 3f8da47729377673ad2353a37150ba3381d358f5 /synapse/handlers | |
parent | Change allow_unsafe_locale to also apply on new databases (#17238) (diff) | |
download | synapse-726006cdf2dfea3bcac9f6e0e912646b1751bdb7.tar.xz |
Don't invalidate all `get_relations_for_event` on history purge (#17083)
This is a tree cache already, so may as well move the room ID to the front and use that
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/relations.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/relations.py b/synapse/handlers/relations.py index c5cee8860b..de092f8623 100644 --- a/synapse/handlers/relations.py +++ b/synapse/handlers/relations.py @@ -393,9 +393,9 @@ class RelationsHandler: # Attempt to find another event to use as the latest event. potential_events, _ = await self._main_store.get_relations_for_event( + room_id, event_id, event, - room_id, RelationTypes.THREAD, direction=Direction.FORWARDS, ) |