mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
do store our own device, otherwise need special case verifying own msgs
This commit is contained in:
parent
1cd93df81c
commit
b653022a5a
@ -205,10 +205,6 @@ export class DeviceTracker {
|
||||
if (typeof ed25519Key !== "string" || typeof curve25519Key !== "string") {
|
||||
return false;
|
||||
}
|
||||
// don't store our own device
|
||||
if (userId === this._ownUserId && deviceId === this._ownDeviceId) {
|
||||
return false;
|
||||
}
|
||||
return this._hasValidSignature(deviceKeys);
|
||||
});
|
||||
const verifiedKeys = verifiedEntries.map(([, deviceKeys]) => deviceKeys);
|
||||
@ -287,7 +283,7 @@ export class DeviceTracker {
|
||||
if (queriedDevices && queriedDevices.length) {
|
||||
flattenedDevices = flattenedDevices.concat(queriedDevices);
|
||||
}
|
||||
// filter out our own devices if it got in somehow (even though we should not store it)
|
||||
// filter out our own device
|
||||
const devices = flattenedDevices.filter(device => {
|
||||
return !(device.userId === this._ownUserId && device.deviceId === this._ownDeviceId);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user