mirror of
https://github.com/bitwarden/android.git
synced 2026-03-12 05:04:17 -05:00
Ensure lastSyncTime is updated before resyncing the vault (#4375)
This commit is contained in:
@@ -1352,11 +1352,11 @@ class VaultRepositoryImpl(
|
||||
if (serverRevisionDate < lastSyncTimeMs) {
|
||||
// We can skip the actual sync call if there is no new data or
|
||||
// database scheme changes since the last sync.
|
||||
vaultDiskSource.resyncVaultData(userId = userId)
|
||||
settingsDiskSource.storeLastSyncTime(
|
||||
userId = userId,
|
||||
lastSyncTime = clock.instant(),
|
||||
)
|
||||
vaultDiskSource.resyncVaultData(userId = userId)
|
||||
val itemsAvailable = vaultDiskSource
|
||||
.getCiphers(userId)
|
||||
.firstOrNull()
|
||||
|
||||
Reference in New Issue
Block a user