summary refs log tree commit diff
path: root/synapse/handlers/presence.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/handlers/presence.py')
-rw-r--r--synapse/handlers/presence.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py
index a3c7952a4c..ab33952cd2 100644
--- a/synapse/handlers/presence.py
+++ b/synapse/handlers/presence.py
@@ -236,7 +236,7 @@ class PresenceHandler(object):
         unpersisted = self.unpersisted_users_changes
         self.unpersisted_users_changes = set()
 
-        if self.unpersisted_users_changes:
+        if unpersisted:
             yield self.store.update_presence([
                 self.user_to_current_state[user_id]
                 for user_id in unpersisted