When a host reschedules a booking, the system now checks if any guest (attendee/booker) is a registered Cal.com user. If they are, their existing bookings are fetched and used to filter out time slots that conflict with their schedule — ensuring only mutually available slots are shown.
BookingRepository.ts — Added findAcceptedBookingsByUserIdInDateRange():
userId) or attendee (email)excludeUid)AvailableSlotsService (util.ts) — Added guest availability filtering in _getAvailableSlots:
rescheduleUid is present, fetches the booking being rescheduleduserRepo.findByEmailcheckForConflicts to remove slots where guests are busycheckForConflicts utility for consistent conflict detectionFixes #16378
/claim #16378
يوسف جمال يوسف محمد ناجي
@promisingcoder
Cal.com, Inc.
@cal