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