Remove now-unnecessary unlocking check when calling sync (#1004)

This commit is contained in:
Brian Yencho
2024-02-13 10:23:25 -06:00
committed by Álison Fernandes
parent 1bb489a206
commit e115c51e36
2 changed files with 1 additions and 75 deletions

View File

@@ -298,7 +298,7 @@ class VaultRepositoryImpl(
override fun sync() {
val userId = activeUserId ?: return
if (!syncJob.isCompleted || isVaultUnlocking(userId)) return
if (!syncJob.isCompleted) return
mutableCiphersStateFlow.updateToPendingOrLoading()
mutableDomainsStateFlow.updateToPendingOrLoading()
mutableFoldersStateFlow.updateToPendingOrLoading()