Commit 60b8fbe5 authored by Manfred Kutas's avatar Manfred Kutas

ZP-779 Remove unnecessary code.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 1d9e2302
......@@ -97,6 +97,7 @@ class ImportChangesICS implements IImportChanges {
if ($folderid) {
$entryid = mapi_msgstore_entryidfromsourcekey($store, $folderid);
$folderidForBackendId = ZPush::GetDeviceManager()->GetFolderIdForBackendId($this->folderidHex);
// Only append backend id if the mapping backendid<->folderid is available.
if ($folderidForBackendId != $this->folderidHex) {
$this->prefix = $folderidForBackendId . ':';
}
......@@ -362,11 +363,10 @@ class ImportChangesICS implements IImportChanges {
$flags = 0;
$props = array();
$props[PR_PARENT_SOURCE_KEY] = $this->folderid;
$fsk = null;
// set the PR_SOURCE_KEY if available or mark it as new message
if($id) {
list($fsk, $sk) = MAPIUtils::SplitMessageId($id);
list(, $sk) = MAPIUtils::SplitMessageId($id);
$props[PR_SOURCE_KEY] = hex2bin($sk);
// on editing an existing message, check if it is in the synchronization interval
......@@ -389,14 +389,8 @@ class ImportChangesICS implements IImportChanges {
return false;
}
}
else {
else
$flags = SYNC_NEW_MESSAGE;
$folderid = ZPush::GetDeviceManager()->GetFolderIdForBackendId($this->folderidHex);
// Only append backend id if the mapping backendid<->folderid is available.
if ($folderid != $this->folderidHex && is_int($folderid) ) {
$fsk = $this->folderidHex;
}
}
if(mapi_importcontentschanges_importmessagechange($this->importer, $props, $flags, $mapimessage)) {
$this->mapiprovider->SetMessage($mapimessage, $message);
......
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