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:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user