mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Merge pull request #4829 from matrix-org/erikj/device_list_seen_updates
When re-syncing device lists reset the state
This commit is contained in:
commit
469b66c102
1
changelog.d/4829.bugfix
Normal file
1
changelog.d/4829.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Fix potential race in handling missing updates in device list updates.
|
@ -597,6 +597,10 @@ class DeviceListEduUpdater(object):
|
||||
)
|
||||
device_ids = [device["device_id"] for device in devices]
|
||||
yield self.device_handler.notify_device_update(user_id, device_ids)
|
||||
|
||||
# We clobber the seen updates since we've re-synced from a given
|
||||
# point.
|
||||
self._seen_updates[user_id] = set([stream_id])
|
||||
else:
|
||||
# Simply update the single device, since we know that is the only
|
||||
# change (because of the single prev_id matching the current cache)
|
||||
|
Loading…
Reference in New Issue
Block a user