0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-14 23:03:51 +01:00

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

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
)