Skip to content

Commit cce9bef

Browse files
Ensure lastSyncTime is updated before resyncing the vault (#4375)
1 parent 8e7ec7a commit cce9bef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/x8bit/bitwarden/data/vault/repository/VaultRepositoryImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1352,11 +1352,11 @@ class VaultRepositoryImpl(
13521352
if (serverRevisionDate < lastSyncTimeMs) {
13531353
// We can skip the actual sync call if there is no new data or
13541354
// database scheme changes since the last sync.
1355-
vaultDiskSource.resyncVaultData(userId = userId)
13561355
settingsDiskSource.storeLastSyncTime(
13571356
userId = userId,
13581357
lastSyncTime = clock.instant(),
13591358
)
1359+
vaultDiskSource.resyncVaultData(userId = userId)
13601360
val itemsAvailable = vaultDiskSource
13611361
.getCiphers(userId)
13621362
.firstOrNull()

0 commit comments

Comments
 (0)