mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-09 09:02:25 -04:00
Delete stale non-e2e devices for users, take 3 (#15183)
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
d0541e36c0
commit
78cdb72cd6
7 changed files with 134 additions and 7 deletions
|
@ -272,7 +272,7 @@ class ExfiltrateData(unittest.HomeserverTestCase):
|
|||
self.assertIn("device_id", args[0][0])
|
||||
self.assertIsNone(args[0][0]["display_name"])
|
||||
self.assertIsNone(args[0][0]["last_seen_user_agent"])
|
||||
self.assertIsNone(args[0][0]["last_seen_ts"])
|
||||
self.assertEqual(args[0][0]["last_seen_ts"], 600)
|
||||
self.assertIsNone(args[0][0]["last_seen_ip"])
|
||||
|
||||
def test_connections(self) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue