From 96252cfd4bee18ef47db2a369cc5f5d5cfce705b Mon Sep 17 00:00:00 2001 From: smizrahi Date: Mon, 22 Jul 2024 10:50:22 +0200 Subject: [PATCH] Jitsi link integration --- UI/Scheduler/UIxAppointmentEditor.m | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/UI/Scheduler/UIxAppointmentEditor.m b/UI/Scheduler/UIxAppointmentEditor.m index 5ef8e8e79..5a448b8ef 100644 --- a/UI/Scheduler/UIxAppointmentEditor.m +++ b/UI/Scheduler/UIxAppointmentEditor.m @@ -534,7 +534,8 @@ - (id ) saveAction { NSArray *removeAttendees; - NSDictionary *params; + NSMutableDictionary *params; + NSMutableArray *attachUrls; NSString *jsonResponse; NSException *ex; iCalEvent *event; @@ -556,7 +557,7 @@ ex = nil; request = [context request]; - params = [[request contentAsString] objectFromJSONString]; + params = [NSMutableDictionary dictionaryWithDictionary: [[request contentAsString] objectFromJSONString]]; if (params == nil) { ex = [NSException exceptionWithName: @"JSONParsingException" @@ -565,7 +566,16 @@ } else { + if ([params objectForKey: @"attachUrls"]) + attachUrls = [[NSMutableArray alloc] initWithArray: [params objectForKey: @"attachUrls"]]; + else + attachUrls = [[NSMutableArray alloc] init]; + + [attachUrls addObject: [NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat: @"https://meet.jit.si/%@", [SOGoObject globallyUniqueObjectId]], @"value", nil]]; + [params setObject: attachUrls forKey: @"attachUrls"]; [self setAttributes: params]; + [attachUrls release]; + forceSave = [[params objectForKey: @"ignoreConflicts"] boolValue]; removeAttendees = [params objectForKey: @"removeAttendees"];