mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-11-20 03:25:52 +01:00
Fix curve key not being read correctly
This commit is contained in:
parent
5edf5e02c3
commit
2784500cbd
@ -604,7 +604,7 @@ export class DeviceTracker {
|
||||
if (userIdentity?.keysTrackingStatus !== KeysTrackingStatus.UpToDate) {
|
||||
const {deviceKeys} = await this._queryKeys([userId], hsApi, log);
|
||||
const keyList = deviceKeys.get(userId);
|
||||
const device = keyList!.find(device => device.keys.curve25519 === key);
|
||||
const device = keyList!.find(device => getDeviceCurve25519Key(device) === key);
|
||||
return device;
|
||||
}
|
||||
const device = await txn.deviceKeys.getByCurve25519Key(key);
|
||||
|
Loading…
Reference in New Issue
Block a user