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

Check correct variable

This commit is contained in:
Erik Johnston 2016-08-30 15:50:20 +01:00
parent 21b977ccfe
commit 097330bae8

View file

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