summary refs log tree commit diff
path: root/synapse/storage/databases/main/relations.py
diff options
context:
space:
mode:
authorErik Johnston <erikj@element.io>2024-05-29 12:57:10 +0100
committerGitHub <noreply@github.com>2024-05-29 12:57:10 +0100
commit726006cdf2dfea3bcac9f6e0e912646b1751bdb7 (patch)
tree3f8da47729377673ad2353a37150ba3381d358f5 /synapse/storage/databases/main/relations.py
parentChange allow_unsafe_locale to also apply on new databases (#17238) (diff)
downloadsynapse-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.py2
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,