From 1dcfb201c4dcf329694195c89fadce80804459b7 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Tue, 23 Feb 2016 00:21:48 +0100 Subject: [PATCH] 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 --- synapse/handlers/sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py index c87ff75c0..4c6cc22a2 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 )