From 661e7cf7f27d577869ac1ca14ae8f68610f31239 Mon Sep 17 00:00:00 2001 From: Nick Barrett Date: Tue, 13 Sep 2022 10:08:07 +0100 Subject: [PATCH] Fix call to `get_immediate` --- synapse/storage/databases/main/roommember.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/storage/databases/main/roommember.py b/synapse/storage/databases/main/roommember.py index 829543358178..9f51115cd30d 100644 --- a/synapse/storage/databases/main/roommember.py +++ b/synapse/storage/databases/main/roommember.py @@ -624,7 +624,7 @@ async def get_rooms_for_user(self, user_id: str) -> FrozenSet[str]: participating in. """ rooms = self.get_rooms_for_user_with_stream_ordering.cache.get_immediate( - user_id + (user_id,), None, update_metrics=False, ) if rooms: return frozenset(r.room_id for r in rooms)