fix: hide orgnizer email in cal video sidebar (#21011)

This commit is contained in:
Anik Dhabal Babu
2025-04-28 16:34:32 +00:00
committed by GitHub
parent ffb36509ff
commit 1b04fe82a7
2 changed files with 11 additions and 2 deletions
@@ -225,8 +225,12 @@ export function VideoMeetingInfo(props: VideoMeetingInfo) {
<h3>{t("who")}:</h3>
<p>
{booking?.user?.name} - {t("organizer")}:{" "}
<a href={`mailto:${booking?.user?.email}`}>{booking?.user?.email}</a>
{booking?.user?.name} - {t("organizer")}
{!booking?.eventType?.hideOrganizerEmail && (
<>
: <a href={`mailto:${booking?.user?.email}`}>{booking?.user?.email}</a>
</>
)}
</p>
{booking.attendees.length
@@ -371,6 +371,11 @@ export class BookingRepository {
uid: true,
description: true,
isRecorded: true,
eventType: {
select: {
hideOrganizerEmail: true,
},
},
user: {
select: {
id: true,