Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117871052
D4842.1775328406.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1022 B
Referenced Files
None
Subscribers
None
D4842.1775328406.diff
View Options
diff --git a/lib/ext/Syncroton/Command/Sync.php b/lib/ext/Syncroton/Command/Sync.php
--- a/lib/ext/Syncroton/Command/Sync.php
+++ b/lib/ext/Syncroton/Command/Sync.php
@@ -465,6 +465,21 @@
$this->_collections[$collectionData->collectionId] = $collectionData;
$this->_modifications[$collectionData->collectionId] = $clientModifications;
}
+
+ // Handle Calendar folders first.
+ // Outlook can't match MeetingRequest with an event that wasn't synced yet, which
+ // leads to duplicated events in Outlook's calendar.
+ uasort(
+ $this->_collections,
+ function ($a, $b) {
+ $ac = $a->folder && $a->folder->class == Syncroton_Data_Factory::CLASS_CALENDAR;
+ $bc = $b->folder && $b->folder->class == Syncroton_Data_Factory::CLASS_CALENDAR;
+ if ($ac) {
+ return $bc ? 0 : -1;
+ }
+ return $bc ? 1 : 0;
+ }
+ );
}
/**
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 4, 6:46 PM (19 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18830796
Default Alt Text
D4842.1775328406.diff (1022 B)
Attached To
Mode
D4842: Sync Calendars first
Attached
Detach File
Event Timeline