Commit 0c492631 authored by mku's avatar mku

ZP-301 #comment Windows mobile 6.1/6.5 doesn't work with Z-Push 2 #time 30m

git-svn-id: https://z-push.org/svn/z-push/trunk@1599 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent e2788c4a
...@@ -718,12 +718,18 @@ class Sync extends RequestProcessor { ...@@ -718,12 +718,18 @@ class Sync extends RequestProcessor {
$changecount > 0 || (! $spa->HasSyncKey() && $status == SYNC_STATUS_SUCCESS)) $changecount > 0 || (! $spa->HasSyncKey() && $status == SYNC_STATUS_SUCCESS))
$spa->SetNewSyncKey(self::$deviceManager->GetStateManager()->GetNewSyncKey($spa->GetSyncKey())); $spa->SetNewSyncKey(self::$deviceManager->GetStateManager()->GetNewSyncKey($spa->GetSyncKey()));
self::$encoder->startTag(SYNC_FOLDER);
if($spa->HasContentClass()) { if($spa->HasContentClass()) {
ZLog::Write(LOGLEVEL_DEBUG, sprintf("Folder type: %s", $spa->GetContentClass())); ZLog::Write(LOGLEVEL_DEBUG, sprintf("Folder type: %s", $spa->GetContentClass()));
// AS 12.0 devices require content class
if (Request::GetProtocolVersion() < 12.1) {
self::$encoder->startTag(SYNC_FOLDERTYPE);
self::$encoder->content($spa->GetContentClass());
self::$encoder->endTag();
}
} }
self::$encoder->startTag(SYNC_FOLDER);
self::$encoder->startTag(SYNC_SYNCKEY); self::$encoder->startTag(SYNC_SYNCKEY);
if($status == SYNC_STATUS_SUCCESS && $spa->HasNewSyncKey()) if($status == SYNC_STATUS_SUCCESS && $spa->HasNewSyncKey())
self::$encoder->content($spa->GetNewSyncKey()); self::$encoder->content($spa->GetNewSyncKey());
......
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