diff --git a/src/room/InCallView.tsx b/src/room/InCallView.tsx index 0511ac68..c1d1d164 100644 --- a/src/room/InCallView.tsx +++ b/src/room/InCallView.tsx @@ -200,6 +200,9 @@ export const InCallView: FC = ({ ); const onLeavePress = useCallback(() => { + // Disconnect from the room. We don't do this in onLeave because that's + // also called on an unintentional disconnect. Plus we don't have the + // livekit room in onLeave anyway. livekitRoom.disconnect(); onLeave(); }, [livekitRoom, onLeave]);