Commit 1d2b977c authored by Sebastian Kummer's avatar Sebastian Kummer

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

Merge pull request #384 in ZP/z-push from bugfix/ZP-1069-koe-race-condition-when-connecting to develop

* commit 'a3bf653d':
  ZP-1069 Ignore incoming KOE reply flag category update.
parents ef0402e3 a3bf653d
...@@ -276,6 +276,16 @@ class ReplyBackImExporter implements IImportChanges, IExportChanges { ...@@ -276,6 +276,16 @@ class ReplyBackImExporter implements IImportChanges, IExportChanges {
ZLog::Write(LOGLEVEL_DEBUG, "ReplyBackImExporter->ImportMessageChange(): KOE patch item update. Ignoring incoming update."); ZLog::Write(LOGLEVEL_DEBUG, "ReplyBackImExporter->ImportMessageChange(): KOE patch item update. Ignoring incoming update.");
return true; return true;
} }
// KOE ZP-990: OL updates the deleted category which causes a race condition if more than one KOE is connected to that user
if (KOE_CAPABILITY_RECEIVEFLAGS && $message instanceof SyncMail && !isset($message->flag) && isset($message->categories)) {
// check if the categories changed
$serverMessage = $this->getMessage($id, false);
if((empty($message->categories) && empty($serverMessage->categories)) ||
(is_array($mapiCategories) && count(array_diff($mapiCategories, $message->categories)) == 0 && count(array_diff($message->categories, $mapiCategories)) == 0)) {
ZLog::Write(LOGLEVEL_DEBUG, "ReplyBackImExporter->ImportMessageChange(): KOE update of flag categories. Ignoring incoming update.");
return true;
}
}
} }
// data is going to be dropped, inform the user // data is going to be dropped, inform the user
......
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