mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-14 19:05:25 -04:00
Delete stale non-e2e devices for users, take 2 (#14595)
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.
This commit is contained in:
parent
a58b550eac
commit
c2de2ca630
5 changed files with 113 additions and 4 deletions
|
@ -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"],
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue