fix appointmentId chat bug