summary refs log tree commit diff
diff options
context:
space:
mode:
-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 c01fcd3d59..600d0589fd 100644
--- a/synapse/handlers/sync.py
+++ b/synapse/handlers/sync.py
@@ -116,7 +116,7 @@ class GroupsSyncResult(collections.namedtuple("GroupsSyncResult", [
     __slots__ = []
 
     def __nonzero__(self):
-        return self.join or self.invite or self.leave
+        return bool(self.join or self.invite or self.leave)
 
 
 class SyncResult(collections.namedtuple("SyncResult", [