mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 11:12:22 -05:00
Caldav: remove organizer line if current user is organizer for iPhone, will not remove line for events with attendees
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@643 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
9a3d3c2de9
commit
3b446fefbf
@ -1600,10 +1600,13 @@ public class ExchangeSession {
|
||||
result.writeLine("X-CALENDARSERVER-ACCESS:" + eventClass);
|
||||
}
|
||||
}
|
||||
} else if ("END:VEVENT".equals(line)) {
|
||||
if (!hasOrganizer) {
|
||||
// remove organizer line if current user is organizer for iPhone
|
||||
// will not remove line for events with attendees
|
||||
} else if (fromServer && line.equals("ORGANIZER:MAILTO:" + email)) {
|
||||
continue;
|
||||
// add organizer line to all events created in Exchange for active sync
|
||||
} else if (!fromServer && "END:VEVENT".equals(line) && !hasOrganizer) {
|
||||
result.writeLine("ORGANIZER:MAILTO:" + email);
|
||||
}
|
||||
}
|
||||
result.writeLine(line);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user