0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-15 14:32:30 +01:00

Fix up presence

This commit is contained in:
Erik Johnston 2017-03-31 11:36:32 +01:00
parent b4276a3896
commit 9d0170ac6c

View file

@ -546,12 +546,14 @@ class PresenceHandler(object):
updates.append(prev_state.copy_and_replace( updates.append(prev_state.copy_and_replace(
last_user_sync_ts=time_now_ms, last_user_sync_ts=time_now_ms,
)) ))
if not is_syncing:
process_presence.discard(user_id) process_presence.discard(user_id)
if updates: if updates:
yield self._update_states(updates) yield self._update_states(updates)
self.external_process_last_updated_ms[process_id] = self.clock.time_msec() self.external_process_last_updated_ms[process_id] = time_now_ms
@defer.inlineCallbacks @defer.inlineCallbacks
def update_external_syncs_clear(self, process_id): def update_external_syncs_clear(self, process_id):