mirror of
https://github.com/element-hq/element-desktop
synced 2025-04-21 09:03:56 +02:00
Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
f89339577e
commit
a88f695390
@ -101,8 +101,10 @@ export class Store extends ElectronStore<{
|
||||
...(await keytar.findCredentials(KEYTAR_SERVICE)),
|
||||
];
|
||||
for (const cred of credentials) {
|
||||
await this.deleteSecretKeytar(LEGACY_KEYTAR_SERVICE, cred.account);
|
||||
console.info("Store migration: writing", cred);
|
||||
await this.setSecret(cred.account, cred.password);
|
||||
console.info("Store migration: deleting", cred);
|
||||
await this.deleteSecretKeytar(LEGACY_KEYTAR_SERVICE, cred.account);
|
||||
}
|
||||
console.info(`Store migration done: found ${credentials.length} credentials`);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user