From 3155ecf3251e5662f1dd87f2f885be1c08521431 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Sat, 18 Mar 2017 15:34:56 -0400 Subject: [PATCH] (fix) fix opacity in freebusy over EAS --- ActiveSync/iCalEvent+ActiveSync.m | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ActiveSync/iCalEvent+ActiveSync.m b/ActiveSync/iCalEvent+ActiveSync.m index ffdaac244..2f3f7bee3 100644 --- a/ActiveSync/iCalEvent+ActiveSync.m +++ b/ActiveSync/iCalEvent+ActiveSync.m @@ -238,9 +238,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. } else { - // If it's a normal event (ie, with no organizer/attendee) or we are the organizer to an event - // invitation, we set the busy status to 2 (Busy) - [s appendFormat: @"%d", 2]; + // 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 depending on TRANSP. + [s appendFormat: @"%d", (([self isOpaque]) ? 2 : 0)]; } [s appendFormat: @"%d", meetingStatus]; @@ -481,7 +481,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // if ((o = [theValues objectForKey: @"BusyStatus"])) { - [o intValue]; + if ([o boolValue]) + [self setTransparency: @"OPAQUE"]; + else + [self setTransparency: @"TRANSPARENT"]; } //