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>
This commit is contained in:
Patrik Oldsberg 2016-02-23 00:21:48 +01:00
parent f7e3de02ef
commit 1dcfb201c4
1 changed files with 1 additions and 1 deletions

View File

@ -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
)