summary refs log tree commit diff
path: root/synapse/handlers/room_list.py
diff options
context:
space:
mode:
authorAmber Brown <hawkowl@atleastfornow.net>2018-09-07 00:22:23 +1000
committerGitHub <noreply@github.com>2018-09-07 00:22:23 +1000
commit2608ebc04c8b7ffb3417eeb720801d70ddc7dccd (patch)
tree44cf4eae9b110f8f59af56ea1e302676b0fb1083 /synapse/handlers/room_list.py
parentMerge branch 'master' into develop (diff)
downloadsynapse-2608ebc04c8b7ffb3417eeb720801d70ddc7dccd.tar.xz
Port handlers/ to Python 3 (#3803)
Diffstat (limited to 'synapse/handlers/room_list.py')
-rw-r--r--synapse/handlers/room_list.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/room_list.py b/synapse/handlers/room_list.py
index 37e41afd61..38e1737ec9 100644
--- a/synapse/handlers/room_list.py
+++ b/synapse/handlers/room_list.py
@@ -162,7 +162,7 @@ class RoomListHandler(BaseHandler):
         # Filter out rooms that we don't want to return
         rooms_to_scan = [
             r for r in sorted_rooms
-            if r not in newly_unpublished and rooms_to_num_joined[room_id] > 0
+            if r not in newly_unpublished and rooms_to_num_joined[r] > 0
         ]
 
         total_room_count = len(rooms_to_scan)