1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-05 19:23:19 +00:00

Force new ciphers instead of using observable

This commit is contained in:
Jeffrey Holland
2025-08-13 16:37:05 +02:00
parent 40455546d1
commit 69e4dd7fe5

View File

@@ -604,19 +604,13 @@ export class CipherService implements CipherServiceAbstraction {
includeOtherTypes?: CipherType[],
defaultMatch: UriMatchStrategySetting = null,
): Promise<CipherView[]> {
return await firstValueFrom(
this.cipherViews$(userId).pipe(
filter((c) => c != null),
switchMap(
async (ciphers) =>
await this.filterCiphersForUrl<CipherView>(
ciphers,
url,
includeOtherTypes,
defaultMatch,
),
),
),
const ciphers = await this.getAllDecrypted(userId);
return await this.filterCiphersForUrl<CipherView>(
ciphers,
url,
includeOtherTypes,
defaultMatch,
);
}