also delete old crossSigningKeys field on userIdentities

This commit is contained in:
Bruno Windels 2023-03-03 11:57:29 +01:00
parent 08984ad1bc
commit eff495c36d

View File

@ -291,6 +291,7 @@ async function applyCrossSigningChanges(db: IDBDatabase, txn: IDBTransaction, lo
let counter = 0;
await iterateCursor<UserIdentity>(userIdentities.openCursor(), (value, key, cursor) => {
delete value["deviceTrackingStatus"];
delete value["crossSigningKeys"];
value.keysTrackingStatus = KeysTrackingStatus.Outdated;
cursor.update(value);
counter += 1;