diff --git a/apps/desktop/src/autofill/services/desktop-autofill.service.ts b/apps/desktop/src/autofill/services/desktop-autofill.service.ts index ddd94dfae05..0590579c2b6 100644 --- a/apps/desktop/src/autofill/services/desktop-autofill.service.ts +++ b/apps/desktop/src/autofill/services/desktop-autofill.service.ts @@ -99,9 +99,9 @@ export class DesktopAutofillService implements OnDestroy { switchMap(([userId]) => this.cipherService.cipherViews$(userId)), ); }), - debounceTime(100), // just a precaution to not spam the sync if there are multiple changes (we typically observe a null change) // No filter for empty arrays here - we want to sync even if there are 0 items filter((cipherViewMap) => cipherViewMap !== null), + debounceTime(100), // just a precaution to not spam the sync if there are multiple changes (we typically observe a null change) mergeMap((cipherViewMap) => this.sync(Object.values(cipherViewMap ?? []))), takeUntil(this.destroy$), diff --git a/libs/common/src/platform/services/fido2/fido2-authenticator.service.ts b/libs/common/src/platform/services/fido2/fido2-authenticator.service.ts index 0edc1a7390f..8140e2dfff6 100644 --- a/libs/common/src/platform/services/fido2/fido2-authenticator.service.ts +++ b/libs/common/src/platform/services/fido2/fido2-authenticator.service.ts @@ -192,7 +192,6 @@ export class Fido2AuthenticatorService< } const reencrypted = await this.cipherService.encrypt(cipher, activeUserId); await this.cipherService.updateWithServer(reencrypted); - await this.cipherService.clearCache(activeUserId); credentialId = fido2Credential.credentialId; } catch (error) { this.logService?.error( @@ -335,7 +334,6 @@ export class Fido2AuthenticatorService< ); const encrypted = await this.cipherService.encrypt(selectedCipher, activeUserId); await this.cipherService.updateWithServer(encrypted); - await this.cipherService.clearCache(activeUserId); } const authenticatorData = await generateAuthData({