(fix) fix opacity in freebusy over EAS

This commit is contained in:
Ludovic Marcotte 2017-03-18 15:34:56 -04:00
parent fb8ba8f3b9
commit 3155ecf325

View file

@ -238,9 +238,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
} }
else else
{ {
// If it's a normal event (ie, with no organizer/attendee) or we are the organizer to an event // If it's a normal event (i.e. with no organizer/attendee) or we are the organizer of an event
// invitation, we set the busy status to 2 (Busy) // invitation, we set the busy status depending on TRANSP.
[s appendFormat: @"<BusyStatus xmlns=\"Calendar:\">%d</BusyStatus>", 2]; [s appendFormat: @"<BusyStatus xmlns=\"Calendar:\">%d</BusyStatus>", (([self isOpaque]) ? 2 : 0)];
} }
[s appendFormat: @"<MeetingStatus xmlns=\"Calendar:\">%d</MeetingStatus>", meetingStatus]; [s appendFormat: @"<MeetingStatus xmlns=\"Calendar:\">%d</MeetingStatus>", meetingStatus];
@ -481,7 +481,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// //
if ((o = [theValues objectForKey: @"BusyStatus"])) if ((o = [theValues objectForKey: @"BusyStatus"]))
{ {
[o intValue]; if ([o boolValue])
[self setTransparency: @"OPAQUE"];
else
[self setTransparency: @"TRANSPARENT"];
} }
// //