summary refs log tree commit diff
path: root/synapse/handlers/sync.py
diff options
context:
space:
mode:
authorPatrik Oldsberg <patrik.oldsberg@ericsson.com>2016-02-23 00:21:48 +0100
committerPatrik Oldsberg <patrik.oldsberg@ericsson.com>2016-02-23 00:21:59 +0100
commit1dcfb201c4dcf329694195c89fadce80804459b7 (patch)
tree7fc992e3e64dfbc7ba75fbcaa832d786776ddee7 /synapse/handlers/sync.py
parentMerge pull request #587 from matrix-org/rav/guest_access_after_room_join (diff)
downloadsynapse-1dcfb201c4dcf329694195c89fadce80804459b7.tar.xz
handlers/sync: fix SyncResult not counting account_data change when converting to bool
This fixes account_data events not triggering an immediate /sync response

Signed-off-by: Patrik Oldsberg <patrik.oldsberg@ericsson.com>
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 c87ff75c05..4c6cc22a26 100644
--- a/synapse/handlers/sync.py
+++ b/synapse/handlers/sync.py
@@ -121,7 +121,7 @@ class SyncResult(collections.namedtuple("SyncResult", [
         events.
         """
         return bool(
-            self.presence or self.joined or self.invited or self.archived
+            self.presence or self.joined or self.invited or self.archived or self.account_data
         )