w
This commit is contained in:
+1
-11
@@ -377,7 +377,7 @@ ${restriction}
|
||||
return folders;
|
||||
}
|
||||
|
||||
extractEmailSummary(item: any): Email {
|
||||
extractEmail(item: any): Email {
|
||||
const itemType = item["@_xsi_type"] ?? item.__type ?? "";
|
||||
const isMeeting =
|
||||
/MeetingRequest|MeetingResponse|MeetingCancellation|CalendarItem/i.test(
|
||||
@@ -429,12 +429,6 @@ ${restriction}
|
||||
email.end = item.End ?? item.EndWallClock ?? "";
|
||||
}
|
||||
|
||||
return email;
|
||||
}
|
||||
|
||||
extractEmailDetails(item: any): Email {
|
||||
const email = this.extractEmailSummary(item);
|
||||
|
||||
const bodyVal = item.Body?.Value ?? item.Body?.["#text"] ?? "";
|
||||
const bodyType = item.Body?.["@_BodyType"] ?? item.Body?.BodyType ?? "Text";
|
||||
|
||||
@@ -476,10 +470,6 @@ ${restriction}
|
||||
isInline: a.IsInline === "true" || a.IsInline === true,
|
||||
}));
|
||||
|
||||
const isMeeting =
|
||||
/MeetingRequest|MeetingResponse|MeetingCancellation|CalendarItem/i.test(
|
||||
item["@_xsi_type"] ?? "",
|
||||
);
|
||||
if (isMeeting) {
|
||||
email.location = item.Location ?? item.EnhancedLocation?.DisplayName
|
||||
?? "";
|
||||
|
||||
Reference in New Issue
Block a user