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.
Showing
- changelog.d/15183.misc 1 addition, 0 deletionschangelog.d/15183.misc
- synapse/handlers/device.py 1 addition, 1 deletionsynapse/handlers/device.py
- synapse/handlers/register.py 48 additions, 2 deletionssynapse/handlers/register.py
- synapse/storage/databases/main/devices.py 79 additions, 1 deletionsynapse/storage/databases/main/devices.py
- tests/handlers/test_admin.py 1 addition, 1 deletiontests/handlers/test_admin.py
- tests/handlers/test_device.py 1 addition, 1 deletiontests/handlers/test_device.py
- tests/storage/test_client_ips.py 3 additions, 1 deletiontests/storage/test_client_ips.py
Loading