Merge remote-tracking branch 'origin/release-v1.73' into matrix-org-hotfixes

anoa/redirect_instances
David Robertson 2022-11-29 13:05:38 +00:00
commit 9d943ba8a6
No known key found for this signature in database
GPG Key ID: 903ECE108A39DEDD
1 changed files with 1 additions and 0 deletions

View File

@ -1559,6 +1559,7 @@ class DeviceBackgroundUpdateStore(SQLBaseStore):
# that ensures we keep at most 50 devices. # that ensures we keep at most 50 devices.
sql = """ sql = """
SELECT last_seen FROM devices SELECT last_seen FROM devices
LEFT JOIN e2e_device_keys_json USING (user_id, device_id)
WHERE WHERE
user_id = ? user_id = ?
AND NOT hidden AND NOT hidden