summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-05-01 13:29:38 +0100
committerErik Johnston <erik@matrix.org>2015-05-01 13:29:38 +0100
commitda4ed0873977c21d99fa67c28cba322654a09ae6 (patch)
tree3315d7f1e432a81e6a135e4f7ceada6d3ac9cd70 /synapse
parentChange public room list to use defer.gatherResults (diff)
downloadsynapse-da4ed0873977c21d99fa67c28cba322654a09ae6.tar.xz
One too many lens
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})