Commit d4e23e25 authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-841 Reset folderstat when SyncKey "0" is received.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 5f7d4562
......@@ -151,8 +151,10 @@ class Sync extends RequestProcessor {
throw new StateInvalidException("Saved state are not of type SyncParameters");
// new/resync requested
if ($synckey == "0")
if ($synckey == "0") {
$spa->RemoveSyncKey();
$spa->DelFolderStat();
}
else if ($synckey !== false)
$spa->SetSyncKey($synckey);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment