Added maybeUid to createEvent and createMeeting

This commit is contained in:
nicolas committed 2021-07-25 17:05:18 +02:00
1 parent 4fb8e8285e
commit b0ac65b0f6
3 files changed
+28 -11

No files matched your search

+3 -2
View File
@@ -512,10 +512,11 @@ const listCalendars = (withCredentials) =>
const createEvent = async (
credential: Credential,
calEvent: CalendarEvent,
noMail = false
noMail = false,
maybeUid: string = null
): Promise<EventResult> => {
const parser: CalEventParser = new CalEventParser(calEvent);
const uid: string = parser.getUid();
const uid: string = maybeUid ?? parser.getUid();
const richEvent: CalendarEvent = parser.asRichEvent();
let success = true;