actually use correct method to get all device ids for a user
This commit is contained in:
parent
75bff228ec
commit
12262f2824
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||||
|
|
Reference in a new issue