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/storage/databases/main/relations.py | |
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/storage/databases/main/relations.py')
-rw-r--r-- | synapse/storage/databases/main/relations.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/databases/main/relations.py b/synapse/storage/databases/main/relations.py index 77f3641525..29a001ff92 100644 --- a/synapse/storage/databases/main/relations.py +++ b/synapse/storage/databases/main/relations.py @@ -169,9 +169,9 @@ class RelationsWorkerStore(SQLBaseStore): @cached(uncached_args=("event",), tree=True) async def get_relations_for_event( self, + room_id: str, event_id: str, event: EventBase, - room_id: str, relation_type: Optional[str] = None, event_type: Optional[str] = None, limit: int = 5, |