mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-02-02 07:31:38 +01:00
reassignment is not used later on, remove
This commit is contained in:
parent
3d3d590334
commit
bc51644868
@ -214,7 +214,7 @@ export class DeviceTracker {
|
|||||||
const allDeviceIdentities = [];
|
const allDeviceIdentities = [];
|
||||||
const deviceIdentitiesToStore = [];
|
const deviceIdentitiesToStore = [];
|
||||||
// filter out devices that have changed their ed25519 key since last time we queried them
|
// filter out devices that have changed their ed25519 key since last time we queried them
|
||||||
deviceIdentities = await Promise.all(deviceIdentities.map(async deviceIdentity => {
|
await Promise.all(deviceIdentities.map(async deviceIdentity => {
|
||||||
if (knownDeviceIds.includes(deviceIdentity.deviceId)) {
|
if (knownDeviceIds.includes(deviceIdentity.deviceId)) {
|
||||||
const existingDevice = await txn.deviceIdentities.get(deviceIdentity.userId, deviceIdentity.deviceId);
|
const existingDevice = await txn.deviceIdentities.get(deviceIdentity.userId, deviceIdentity.deviceId);
|
||||||
if (existingDevice.ed25519Key !== deviceIdentity.ed25519Key) {
|
if (existingDevice.ed25519Key !== deviceIdentity.ed25519Key) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user