summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
Diffstat (limited to 'synapse')
-rw-r--r--synapse/handlers/room.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py
index bd7a2a592e..cfa2e38ed2 100644
--- a/synapse/handlers/room.py
+++ b/synapse/handlers/room.py
@@ -540,7 +540,7 @@ class RoomListHandler(BaseHandler):
         )
 
         for i, room in enumerate(chunk):
-            room["num_joined_members"] = len(len(results[i]))
+            room["num_joined_members"] = len(results[i])
 
         # FIXME (erikj): START is no longer a valid value
         defer.returnValue({"start": "START", "end": "END", "chunk": chunk})