mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
actually use correct method to get all device ids for a user
This commit is contained in:
parent
75bff228ec
commit
12262f2824
@ -169,7 +169,7 @@ export class DeviceTracker {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async _storeQueriedDevicesForUserId(userId, deviceIdentities, txn) {
|
async _storeQueriedDevicesForUserId(userId, deviceIdentities, txn) {
|
||||||
const knownDeviceIds = await txn.deviceIdentities.getAllForUserId(userId);
|
const knownDeviceIds = await txn.deviceIdentities.getAllDeviceIds(userId);
|
||||||
// delete any devices that we know off but are not in the response anymore.
|
// delete any devices that we know off but are not in the response anymore.
|
||||||
// important this happens before checking if the ed25519 key changed,
|
// important this happens before checking if the ed25519 key changed,
|
||||||
// otherwise we would end up deleting existing devices with changed keys.
|
// otherwise we would end up deleting existing devices with changed keys.
|
||||||
|
Loading…
Reference in New Issue
Block a user