summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-01-29 16:27:38 +0000
committerMark Haines <mark.haines@matrix.org>2015-01-29 16:27:38 +0000
commitcc42d3f9076db1815a989bab7ef6004796b31b3c (patch)
tree417ee6ff71712132db101850b2a80d099ca327f2 /synapse
parentFix v2 initial sync (diff)
downloadsynapse-cc42d3f9076db1815a989bab7ef6004796b31b3c.tar.xz
Fix check for empty room update
Diffstat (limited to '')
-rw-r--r--synapse/handlers/sync.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py
index cfe2944917..ec8beb4c6a 100644
--- a/synapse/handlers/sync.py
+++ b/synapse/handlers/sync.py
@@ -258,7 +258,7 @@ class SyncHandler(BaseHandler):
                     limited=False,
                     typing=typing_by_room.get(room_id, None)
                 )
-                if room_sync is not None:
+                if room_sync:
                     rooms.append(room_sync)
         else:
             for room_id in room_ids: