1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

log viewed event when viewing a cipher on desktop (#15234)

This commit is contained in:
Nick Krantz
2025-06-17 15:53:53 -05:00
committed by GitHub
parent 6a273a3891
commit 58b53f7338

View File

@@ -386,7 +386,14 @@ export class VaultV2Component implements OnInit, OnDestroy {
cipher.collectionIds.includes(c.id),
) ?? null;
this.action = "view";
await this.go().catch(() => {});
await this.eventCollectionService.collect(
EventType.Cipher_ClientViewed,
cipher.id,
false,
cipher.organizationId,
);
}
async openAttachmentsDialog() {