This reverts commit 2c28c9c028.
This commit is contained in:
@@ -65,7 +65,7 @@ export const BaseScheduledEmail = (
|
||||
|
||||
return (
|
||||
<BaseEmailHtml
|
||||
hideLogo={Boolean(props.calEvent.platformClientId || props.calEvent.hideBranding)}
|
||||
hideLogo={Boolean(props.calEvent.platformClientId)}
|
||||
headerType={props.headerType || "checkCircle"}
|
||||
subject={props.subject || subject}
|
||||
title={t(
|
||||
|
||||
@@ -271,8 +271,6 @@ export class CalendarEventBuilder {
|
||||
builder.withDestinationCalendar([user.destinationCalendar]);
|
||||
}
|
||||
|
||||
builder.withHideBranding(!!eventType.owner?.hideBranding);
|
||||
|
||||
return builder;
|
||||
}
|
||||
|
||||
@@ -551,14 +549,6 @@ export class CalendarEventBuilder {
|
||||
return this;
|
||||
}
|
||||
|
||||
withHideBranding(hideBranding: boolean) {
|
||||
this.event = {
|
||||
...this.event,
|
||||
hideBranding,
|
||||
};
|
||||
return this;
|
||||
}
|
||||
|
||||
build(): CalendarEvent | null {
|
||||
// Validate required fields
|
||||
if (
|
||||
|
||||
@@ -396,7 +396,6 @@ async function handler(input: CancelBookingInput, dependencies?: Dependencies) {
|
||||
platformRescheduleUrl,
|
||||
platformCancelUrl,
|
||||
hideOrganizerEmail: bookingToDelete.eventType?.hideOrganizerEmail,
|
||||
hideBranding: !!bookingToDelete.eventType?.owner?.hideBranding,
|
||||
platformBookingUrl,
|
||||
customReplyToEmail: bookingToDelete.eventType?.customReplyToEmail,
|
||||
organizationId: ownerProfile?.organizationId ?? null,
|
||||
|
||||
@@ -1574,7 +1574,6 @@ async function handler(
|
||||
}
|
||||
|
||||
let evt: CalendarEvent = builtEvt;
|
||||
evt.hideBranding = !!eventType.owner?.hideBranding;
|
||||
|
||||
if (input.bookingData.thirdPartyRecurringEventId) {
|
||||
const updatedEvt = CalendarEventBuilder.fromEvent(evt)
|
||||
|
||||
@@ -303,11 +303,6 @@ const selectStatementToGetBookingForCalEventBuilder = {
|
||||
destinationCalendar: true,
|
||||
},
|
||||
},
|
||||
owner: {
|
||||
select: {
|
||||
hideBranding: true,
|
||||
},
|
||||
},
|
||||
hosts: {
|
||||
select: {
|
||||
userId: true,
|
||||
|
||||
+2
-4
@@ -503,8 +503,7 @@ export class ManagedEventManualReassignmentService {
|
||||
.withIdentifiers({
|
||||
iCalUID: newBooking.iCalUID || undefined,
|
||||
})
|
||||
.withUid(newBooking.uid)
|
||||
.withHideBranding(!!newUser.hideBranding);
|
||||
.withUid(newBooking.uid);
|
||||
|
||||
if (newUser.destinationCalendar) {
|
||||
builder.withDestinationCalendar([newUser.destinationCalendar]);
|
||||
@@ -717,8 +716,7 @@ export class ManagedEventManualReassignmentService {
|
||||
.withLocation({
|
||||
location: bookingLocation || null,
|
||||
})
|
||||
.withUid(newBooking.uid)
|
||||
.withHideBranding(!!newUser.hideBranding);
|
||||
.withUid(newBooking.uid);
|
||||
|
||||
if (videoCallData) {
|
||||
emailBuilder.withVideoCallData(videoCallData);
|
||||
|
||||
@@ -354,7 +354,6 @@ export const roundRobinManualReassignment = async ({
|
||||
booking,
|
||||
}),
|
||||
customReplyToEmail: eventType?.customReplyToEmail,
|
||||
hideBranding: !!eventType?.owner?.hideBranding,
|
||||
location: bookingLocation,
|
||||
...(platformClientParams ? platformClientParams : {}),
|
||||
conferenceCredentialId: conferenceCredentialId ?? undefined,
|
||||
|
||||
@@ -1331,7 +1331,6 @@ export class UserRepository {
|
||||
locale: true,
|
||||
timeFormat: true,
|
||||
metadata: true,
|
||||
hideBranding: true,
|
||||
credentials: {
|
||||
select: credentialForCalendarServiceSelect,
|
||||
},
|
||||
|
||||
Vendored
-1
@@ -207,7 +207,6 @@ export interface CalendarEvent {
|
||||
iCalUID?: string | null;
|
||||
iCalSequence?: number | null;
|
||||
hideOrganizerEmail?: boolean;
|
||||
hideBranding?: boolean;
|
||||
disableCancelling?: boolean;
|
||||
disableRescheduling?: boolean;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user