diff --git a/__test__/features/Events/EventDisplay.test.tsx b/__test__/features/Events/EventDisplay.test.tsx
index a42bcd8..7502b8b 100644
--- a/__test__/features/Events/EventDisplay.test.tsx
+++ b/__test__/features/Events/EventDisplay.test.tsx
@@ -650,7 +650,7 @@ describe("Event Preview Display", () => {
fireEvent.click(emailButton);
- const expectedUrl = `test/mailto/?uri=mailto:john@test.com&subject=Test%20Event`;
+ const expectedUrl = `test/mailto/?uri=mailto%3Ajohn%40test.com&subject=Test%20Event`;
expect(mockOpen).toHaveBeenCalledWith(expectedUrl);
});
@@ -721,7 +721,7 @@ describe("Event Preview Display", () => {
fireEvent.click(emailButton);
- const expectedUrl = `test/mailto/?uri=mailto:john@test.com&subject=Meeting%20%26%20Discussion%3F%20%23Important`;
+ const expectedUrl = `test/mailto/?uri=mailto%3Ajohn%40test.com&subject=Meeting%20%26%20Discussion%3F%20%23Important`;
expect(mockOpen).toHaveBeenCalledWith(expectedUrl);
});
diff --git a/src/components/Event/utils/eventUtils.tsx b/src/components/Event/utils/eventUtils.tsx
index ab51f05..68bc988 100644
--- a/src/components/Event/utils/eventUtils.tsx
+++ b/src/components/Event/utils/eventUtils.tsx
@@ -18,7 +18,8 @@ export function renderAttendeeBadge(
key: string,
t: (key: string) => string,
isFull?: boolean,
- isOrganizer?: boolean
+ isOrganizer?: boolean,
+ caption?: string
) {
const classIcon =
a.partstat === "ACCEPTED" ? (
@@ -65,12 +66,19 @@ export function renderAttendeeBadge(
- {a.cn || a.cal_address}
+
+ {a.cn || a.cal_address}
+
{isOrganizer && (
{t("event.organizer")}
)}
+ {caption && (
+
+ {caption}
+
+ )}
);
diff --git a/src/features/Events/EventPreview/EventPreviewActionMenu.tsx b/src/features/Events/EventPreview/EventPreviewActionMenu.tsx
index 8fb210b..ebf7523 100644
--- a/src/features/Events/EventPreview/EventPreviewActionMenu.tsx
+++ b/src/features/Events/EventPreview/EventPreviewActionMenu.tsx
@@ -36,9 +36,9 @@ export function EventPreviewActionMenu({