Scheduling infrastructure for absolutely everyone.
Revert "init: hide cal branding on user level (#27594)" (#27626)
Benny Joo31c6bbb5ba1c
diff --git a/packages/emails/src/templates/BaseScheduledEmail.tsx b/packages/emails/src/templates/BaseScheduledEmail.tsxindex 279ce628d15..306481e4a14 100644--- a/packages/emails/src/templates/BaseScheduledEmail.tsx+++ b/packages/emails/src/templates/BaseScheduledEmail.tsx@@ -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(diff --git a/packages/features/CalendarEventBuilder.ts b/packages/features/CalendarEventBuilder.tsindex 7c034fc1e19..cdf82699264 100644--- a/packages/features/CalendarEventBuilder.ts+++ b/packages/features/CalendarEventBuilder.ts@@ -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 fieldsif (diff --git a/packages/features/bookings/lib/handleCancelBooking.ts b/packages/features/bookings/lib/handleCancelBooking.tsindex 8e494302c30..8f4bcfbd7af 100644--- a/packages/features/bookings/lib/handleCancelBooking.ts+++ b/packages/features/bookings/lib/handleCancelBooking.ts@@ -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,diff --git a/packages/features/bookings/lib/service/RegularBookingService.ts b/packages/features/bookings/lib/service/RegularBookingService.tsindex d15059e9851..074412c9a06 100644--- a/packages/features/bookings/lib/service/RegularBookingService.ts+++ b/packages/features/bookings/lib/service/RegularBookingService.ts@@ -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)diff --git a/packages/features/bookings/repositories/BookingRepository.ts b/packages/features/bookings/repositories/BookingRepository.tsindex a1349e28c5c..041a017486a 100644--- a/packages/features/bookings/repositories/BookingRepository.ts+++ b/packages/features/bookings/repositories/BookingRepository.ts@@ -303,11 +303,6 @@ const selectStatementToGetBookingForCalEventBuilder = {destinationCalendar: true,},},- owner: {- select: {- hideBranding: true,- },- },hosts: {select: {userId: true,diff --git a/packages/features/ee/managed-event-types/reassignment/services/ManagedEventManualReassignmentService.ts b/packages/features/ee/managed-event-types/reassignment/services/ManagedEventManualReassignmentService.tsindex 77d431cbd99..a3d198e7080 100644--- a/packages/features/ee/managed-event-types/reassignment/services/ManagedEventManualReassignmentService.ts+++ b/packages/features/ee/managed-event-types/reassignment/services/ManagedEventManualReassignmentService.ts@@ -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);diff --git a/packages/features/ee/round-robin/roundRobinManualReassignment.ts b/packages/features/ee/round-robin/roundRobinManualReassignment.tsindex 135e4519fb8..61c2abcafd7 100644--- a/packages/features/ee/round-robin/roundRobinManualReassignment.ts+++ b/packages/features/ee/round-robin/roundRobinManualReassignment.ts@@ -354,7 +354,6 @@ export const roundRobinManualReassignment = async ({booking,}),customReplyToEmail: eventType?.customReplyToEmail,- hideBranding: !!eventType?.owner?.hideBranding,location: bookingLocation,...(platformClientParams ? platformClientParams : {}),conferenceCredentialId: conferenceCredentialId ?? undefined,diff --git a/packages/features/users/repositories/UserRepository.ts b/packages/features/users/repositories/UserRepository.tsindex 326f460d267..252b93c8090 100644--- a/packages/features/users/repositories/UserRepository.ts+++ b/packages/features/users/repositories/UserRepository.ts@@ -1331,7 +1331,6 @@ export class UserRepository {locale: true,timeFormat: true,metadata: true,- hideBranding: true,credentials: {select: credentialForCalendarServiceSelect,},diff --git a/packages/types/Calendar.d.ts b/packages/types/Calendar.d.tsindex 1533bf57d1e..504928d7270 100644--- a/packages/types/Calendar.d.ts+++ b/packages/types/Calendar.d.ts@@ -207,7 +207,6 @@ export interface CalendarEvent {iCalUID?: string | null;iCalSequence?: number | null;hideOrganizerEmail?: boolean;- hideBranding?: boolean;disableCancelling?: boolean;disableRescheduling?: boolean;