Merge pull request #118 from Zentyal/ejhernandez/return-sorted-events
oc: return last modified messages when sorted by PidMessageTagDeliveryTime This change is required as oxcfxics is asking for sorting using this property. We fake this property on GCS folders (Tasks, Calendar, Contacts) using c_lastmodified column.pull/79/head^2
commit
49ee0850e1
6
NEWS
6
NEWS
|
@ -1,3 +1,9 @@
|
||||||
|
master
|
||||||
|
------
|
||||||
|
|
||||||
|
Enhancements
|
||||||
|
- Synchronize events, contacts and tasks in reverse chronological order
|
||||||
|
|
||||||
2.2.17a-zentyal1 (2014-04-15)
|
2.2.17a-zentyal1 (2014-04-15)
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
|
|
|
@ -182,6 +182,9 @@ static Class MAPIStoreCalendarMessageK = Nil;
|
||||||
forKey: MAPIPropertyKey (PR_CREATION_TIME)];
|
forKey: MAPIPropertyKey (PR_CREATION_TIME)];
|
||||||
[knownProperties setObject: @"c_uid"
|
[knownProperties setObject: @"c_uid"
|
||||||
forKey: MAPIPropertyKey (PR_OWNER_APPT_ID)];
|
forKey: MAPIPropertyKey (PR_OWNER_APPT_ID)];
|
||||||
|
/* Use by oxcfxics to sort the latest first */
|
||||||
|
[knownProperties setObject: @"c_lastmodified"
|
||||||
|
forKey: MAPIPropertyKey (PidTagMessageDeliveryTime)];
|
||||||
}
|
}
|
||||||
|
|
||||||
return [knownProperties objectForKey: MAPIPropertyKey (property)];
|
return [knownProperties objectForKey: MAPIPropertyKey (property)];
|
||||||
|
|
|
@ -220,6 +220,9 @@ static Class MAPIStoreContactsMessageK, NGMailAddressK, NSDataK, NSStringK;
|
||||||
forKey: MAPIPropertyKey (PidTagSubject)];
|
forKey: MAPIPropertyKey (PidTagSubject)];
|
||||||
[knownProperties setObject: @"c_cn"
|
[knownProperties setObject: @"c_cn"
|
||||||
forKey: MAPIPropertyKey (PidTagNormalizedSubject)];
|
forKey: MAPIPropertyKey (PidTagNormalizedSubject)];
|
||||||
|
/* Use by oxcfxics to sort the latest first */
|
||||||
|
[knownProperties setObject: @"c_lastmodified"
|
||||||
|
forKey: MAPIPropertyKey (PidTagMessageDeliveryTime)];
|
||||||
}
|
}
|
||||||
|
|
||||||
return [knownProperties objectForKey: MAPIPropertyKey (property)];
|
return [knownProperties objectForKey: MAPIPropertyKey (property)];
|
||||||
|
|
|
@ -157,6 +157,9 @@ static Class MAPIStoreTasksMessageK = Nil;
|
||||||
forKey: MAPIPropertyKey (PidLidTaskDueDate)];
|
forKey: MAPIPropertyKey (PidLidTaskDueDate)];
|
||||||
[knownProperties setObject: @"c_creationdate"
|
[knownProperties setObject: @"c_creationdate"
|
||||||
forKey: MAPIPropertyKey (PidLidTaskOrdinal)];
|
forKey: MAPIPropertyKey (PidLidTaskOrdinal)];
|
||||||
|
/* Use by oxcfxics to sort the latest first */
|
||||||
|
[knownProperties setObject: @"c_lastmodified"
|
||||||
|
forKey: MAPIPropertyKey (PidTagMessageDeliveryTime)];
|
||||||
}
|
}
|
||||||
|
|
||||||
return [knownProperties objectForKey: MAPIPropertyKey (property)];
|
return [knownProperties objectForKey: MAPIPropertyKey (property)];
|
||||||
|
|
Loading…
Reference in New Issue