1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 14:53:33 +00:00

[Key Connector] Resolve desktop not prompting to remove password (#558)

This commit is contained in:
Oscar Hinton
2021-11-19 13:35:12 +01:00
committed by GitHub
parent 10fa164ffc
commit 8b01eea446

View File

@@ -321,16 +321,16 @@ export class SyncService implements SyncServiceAbstraction {
}
});
await Promise.all([
this.userService.replaceOrganizations(organizations),
this.userService.replaceProviders(providers),
]);
if (await this.keyConnectorService.userNeedsMigration()) {
this.messagingService.send('convertAccountToKeyConnector');
} else {
this.keyConnectorService.removeConvertAccountRequired();
}
return Promise.all([
this.userService.replaceOrganizations(organizations),
this.userService.replaceProviders(providers),
]);
}
private async syncFolders(userId: string, response: FolderResponse[]) {