mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Deduplicate presence entries in sync (#818)
This commit is contained in:
parent
70599ce925
commit
661a540dd1
@ -637,6 +637,9 @@ class SyncHandler(object):
|
||||
)
|
||||
presence.extend(states)
|
||||
|
||||
# Deduplicate the presence entries so that there's at most one per user
|
||||
presence = {p["content"]["user_id"]: p for p in presence}.values()
|
||||
|
||||
presence = sync_config.filter_collection.filter_presence(
|
||||
presence
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user