Commit f3ca12fa authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #547 in ZP/z-push from...

Merge pull request #547 in ZP/z-push from bugfix/ZP-1239-wp-8.1-sends-client-changes-and-fetch to develop

* commit '141a425d':
  ZP-1239 Don't send server side changes if performing incoming actions.
parents 4ce5071c 141a425d
...@@ -631,7 +631,11 @@ class Sync extends RequestProcessor { ...@@ -631,7 +631,11 @@ class Sync extends RequestProcessor {
foreach($sc as $folderid => $spa) { foreach($sc as $folderid => $spa) {
// manually set getchanges parameter for this collection if it is synchronized // manually set getchanges parameter for this collection if it is synchronized
if ($spa->HasSyncKey()) { if ($spa->HasSyncKey()) {
$sc->AddParameter($spa, "getchanges", true); $actiondata = $sc->GetParameter($spa, "actiondata");
// request changes if no other actions are executed
if (empty($actiondata["modifyids"]) && empty($actiondata["clientids"]) && empty($actiondata["removeids"])) {
$sc->AddParameter($spa, "getchanges", true);
}
// announce WindowSize to DeviceManager // announce WindowSize to DeviceManager
self::$deviceManager->SetWindowSize($folderid, $spa->GetWindowSize()); self::$deviceManager->SetWindowSize($folderid, $spa->GetWindowSize());
......
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