diff options
author | Andrew Morgan <andrew@amorgan.xyz> | 2021-12-08 19:02:13 +0000 |
---|---|---|
committer | Andrew Morgan <andrewm@element.io> | 2022-03-10 15:50:58 +0000 |
commit | 88c4e7369db621d8efb898720b5eb5a865af1c54 (patch) | |
tree | e427fe1ce0fddeb4aee7047d3631a9afef648dfd | |
parent | Move DeviceLists type to synapse.types (diff) | |
download | synapse-88c4e7369db621d8efb898720b5eb5a865af1c54.tar.xz |
Switch DeviceLists to containing Sets, which allows item deletes
In the next commit, we'll be merging one DeviceList into another. This will require the ability to remove items by value, which Collection does not provide, while a mutable structure such as Set does. Set was chosen to to remove duplicate user IDs.
-rw-r--r-- | synapse/handlers/sync.py | 2 | ||||
-rw-r--r-- | synapse/types.py | 15 |
2 files changed, 11 insertions, 6 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py |