Commit 76b68be
fix: ensure seated event reschedules send proper reschedule emails (calcom#22849)
* fix: ensure seated event reschedules send proper reschedule emails
- Fix attendee reschedule bypass when no existing booking at new time slot
- Remove restrictive isConfirmedByDefault conditions from owner reschedule functions
- Add seatedRescheduleEmailSent flag to coordinate email sending between handleSeats and handleNewBooking
- Prevent main flow from overriding seated reschedule emails with scheduled emails
Fixes issue where both organizer and attendee receive schedule emails instead of reschedule emails during seated event reschedules.
Co-Authored-By: anik@cal.com <adhabal2002@gmail.com>
* refine: only apply seatedRescheduleEmailSent check for seated bookings
- Add eventType.seatsPerTimeSlot condition to ensure flag only affects seated events
- Prevents interference with regular booking email flow
Co-Authored-By: anik@cal.com <adhabal2002@gmail.com>
* fix: replace unreliable flag mechanism with direct seated reschedule detection
- Remove seatedRescheduleEmailSent flag from HandleSeatsResultBooking type
- Remove flag assignments from seated reschedule functions
- Use direct detection (eventType.seatsPerTimeSlot && rescheduleUid) in handleNewBooking
- Maintain email sending fixes for attendee reschedules and owner reschedule conditions
- Resolve TypeScript type mismatch issues with type-safe approach
Co-Authored-By: anik@cal.com <adhabal2002@gmail.com>
* Update attendeeRescheduleSeatedBooking.ts
* revert
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>1 parent c20e723 commit 76b68be
2 files changed
Lines changed: 3 additions & 1 deletion
File tree
- packages/features/bookings/lib
- handleSeats/reschedule/attendee
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1990 | 1990 | | |
1991 | 1991 | | |
1992 | 1992 | | |
1993 | | - | |
| 1993 | + | |
1994 | 1994 | | |
1995 | 1995 | | |
1996 | 1996 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| |||
0 commit comments