fix changed key not being ignored

This commit is contained in:
Bruno Windels 2022-05-31 13:39:35 +02:00
parent bc51644868
commit c62c8da10b

View file

@ -219,6 +219,7 @@ export class DeviceTracker {
const existingDevice = await txn.deviceIdentities.get(deviceIdentity.userId, deviceIdentity.deviceId);
if (existingDevice.ed25519Key !== deviceIdentity.ed25519Key) {
allDeviceIdentities.push(existingDevice);
return;
}
}
allDeviceIdentities.push(deviceIdentity);