1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-21 03:43:58 +00:00

updated to use sdk function without prociding the key

This commit is contained in:
gbubemismith
2025-04-16 16:22:09 -04:00
parent c4c2f9a915
commit 55a701befd
36 changed files with 118 additions and 170 deletions

View File

@@ -19,7 +19,7 @@ export class WebCommunicationProvider implements CommunicationBackend {
return;
}
await this.queue.enqueue({ ...message.message, source: "BrowserBackground" });
await this.queue.enqueue({ ...message.message, source: "BrowserBackground" } as any);
});
}

View File

@@ -466,10 +466,7 @@ export class VaultItemDialogComponent implements OnInit, OnDestroy {
activeUserId,
);
const updatedCipherView = await this.cipherService.decryptCipherWithSdkOrLegacy(
updatedCipher,
activeUserId,
);
const updatedCipherView = await this.cipherService.decrypt(updatedCipher, activeUserId);
this.cipherFormComponent.patchCipher((currentCipher) => {
currentCipher.attachments = updatedCipherView.attachments;
@@ -505,10 +502,7 @@ export class VaultItemDialogComponent implements OnInit, OnDestroy {
return;
}
const activeUserId = await firstValueFrom(this.accountService.activeAccount$.pipe(getUserId));
return await this.cipherService.decryptCipherWithSdkOrLegacy(
config.originalCipher,
activeUserId,
);
return await this.cipherService.decrypt(config.originalCipher, activeUserId);
}
private updateTitle() {