mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 03:02:22 -05:00
Caldav: Fix METHOD on create from iPhone
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1354 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
93d528704d
commit
57a379c67b
@ -127,6 +127,11 @@ public class VCalendar extends VObject {
|
||||
String calendarServerAccess = getPropertyValue("X-CALENDARSERVER-ACCESS");
|
||||
String now = ExchangeSession.getZuluDateFormat().format(new Date());
|
||||
|
||||
// fix method from iPhone
|
||||
if (!fromServer && getPropertyValue("METHOD") == null) {
|
||||
setPropertyValue("METHOD", "PUBLISH");
|
||||
}
|
||||
|
||||
// iterate over vObjects
|
||||
for (VObject vObject : vObjects) {
|
||||
if ("VEVENT".equals(vObject.type)) {
|
||||
|
@ -1140,7 +1140,6 @@ public class EwsExchangeSession extends ExchangeSession {
|
||||
protected void loadVtimezone() {
|
||||
String timezoneId = getTimezoneidFromOptions();
|
||||
try {
|
||||
deleteFolder("davmailtemp");
|
||||
createCalendarFolder("davmailtemp", null);
|
||||
EWSMethod.Item item = new EWSMethod.Item();
|
||||
item.type = "CalendarItem";
|
||||
|
Loading…
Reference in New Issue
Block a user