1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-08 20:50:28 +00:00

Fix merge

This commit is contained in:
Bernd Schoolmann
2025-12-12 11:35:31 +01:00
parent f08dbecb33
commit 76ab072b5a

View File

@@ -38,24 +38,16 @@ export const ENCRYPTED_MIGRATION_DISMISSED = new UserKeyDefinition<Date>(
},
);
const DISMISS_TIME_HOURS = 24;
<<<<<<< HEAD
const VAULT_ROUTE = "/vault";
=======
const VAULT_ROUTES = ["/vault", "/tabs/vault", "/tabs/current"];
>>>>>>> main
/**
* This services schedules encrypted migrations for users on clients that are interactive (non-cli), and handles manual interaction,
* if it is required by showing a UI prompt. It is only one means of triggering migrations, in case the user stays unlocked for a while,
* or regularly logs in without a master-password, when the migrations do require a master-password to run.
*/
<<<<<<< HEAD
export class DefaultEncryptedMigrationsSchedulerService
implements EncryptedMigrationsSchedulerService
{
=======
export class DefaultEncryptedMigrationsSchedulerService implements EncryptedMigrationsSchedulerService {
>>>>>>> main
isMigrating = false;
url$: Observable<string>;
@@ -95,11 +87,7 @@ export class DefaultEncryptedMigrationsSchedulerService implements EncryptedMigr
]).pipe(
filter(
([authStatus, _date, url]) =>
<<<<<<< HEAD
authStatus === AuthenticationStatus.Unlocked && url === VAULT_ROUTE,
=======
authStatus === AuthenticationStatus.Unlocked && VAULT_ROUTES.includes(url),
>>>>>>> main
),
concatMap(() => this.runMigrationsIfNeeded(userId)),
),