fix: fix carddav sync-collection reporting wrong syncToken (#3734)

This commit is contained in:
Alexis Saettler
2020-03-24 21:11:47 +01:00
committed by GitHub
parent f0d4d82da6
commit ebba317474
6 changed files with 29 additions and 3 deletions
@@ -167,7 +167,6 @@ trait SyncDAVBackend
$timestamp = $token->timestamp;
} else {
$token = $this->createSyncTokenNow();
$timestamp = null;
}
@@ -184,7 +183,7 @@ trait SyncDAVBackend
});
return [
'syncToken' => $token->id,
'syncToken' => $this->getCurrentSyncToken()->id,
'added' => $added->map(function ($obj) {
return $this->encodeUri($obj);
})->toArray(),