summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorNick Mills-Barrett <nick@beeper.com>2022-08-23 10:49:59 +0100
committerGitHub <noreply@github.com>2022-08-23 09:49:59 +0000
commit5e7847dc923142bc68834f9b9538ada3fdd887d5 (patch)
tree4034cac25dfc9f94e3f25b8ee199ced9f4b764f4 /synapse/handlers
parentFix that sending server notices fail if avatar is `None` (#13566) (diff)
downloadsynapse-5e7847dc923142bc68834f9b9538ada3fdd887d5.tar.xz
Cache user IDs instead of profile objects (#13573)
The profile objects are never used and increase cache size significantly.
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/sync.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py
index b4d3f3958c..2d95b1fa24 100644
--- a/synapse/handlers/sync.py
+++ b/synapse/handlers/sync.py
@@ -2421,10 +2421,10 @@ class SyncHandler:
                     joined_room.room_id, joined_room.event_pos.stream
                 )
             )
-            users_in_room = await self.state.get_current_users_in_room(
+            user_ids_in_room = await self.state.get_current_user_ids_in_room(
                 joined_room.room_id, extrems
             )
-            if user_id in users_in_room:
+            if user_id in user_ids_in_room:
                 joined_room_ids.add(joined_room.room_id)
 
         return frozenset(joined_room_ids)