[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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

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()) { if (await this.keyConnectorService.userNeedsMigration()) {
this.messagingService.send('convertAccountToKeyConnector'); this.messagingService.send('convertAccountToKeyConnector');
} else { } else {
this.keyConnectorService.removeConvertAccountRequired(); this.keyConnectorService.removeConvertAccountRequired();
} }
return Promise.all([
this.userService.replaceOrganizations(organizations),
this.userService.replaceProviders(providers),
]);
} }
private async syncFolders(userId: string, response: FolderResponse[]) { private async syncFolders(userId: string, response: FolderResponse[]) {