diff options
author | Erik Johnston <erik@matrix.org> | 2022-11-29 10:36:41 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-29 10:36:41 +0000 |
commit | c7e29ca277cf60bfdc488b93f4321b046fa6b46f (patch) | |
tree | f9d75dbe799ec850750b3206bc3dd001220799e3 /tests/handlers/test_device.py | |
parent | Fix possible variable shadow in `create_new_client_event` (#14575) (diff) | |
download | synapse-c7e29ca277cf60bfdc488b93f4321b046fa6b46f.tar.xz |
POC delete stale non-e2e devices for users (#14038)
This should help reduce the number of devices e.g. simple bots the repeatedly login rack up. We only delete non-e2e devices as they should be safe to delete, whereas if we delete e2e devices for a user we may accidentally break their ability to receive e2e keys for a message. Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com>
Diffstat (limited to 'tests/handlers/test_device.py')
-rw-r--r-- | tests/handlers/test_device.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/handlers/test_device.py b/tests/handlers/test_device.py index ce7525e29c..a456bffd63 100644 --- a/tests/handlers/test_device.py +++ b/tests/handlers/test_device.py @@ -115,7 +115,7 @@ class DeviceTestCase(unittest.HomeserverTestCase): "device_id": "xyz", "display_name": "display 0", "last_seen_ip": None, - "last_seen_ts": None, + "last_seen_ts": 1000000, }, device_map["xyz"], ) |