Add comment

This commit is contained in:
David Baker
2023-11-15 16:20:28 +00:00
parent c146e83c15
commit be5cd619bb

View File

@@ -200,6 +200,9 @@ export const InCallView: FC<InCallViewProps> = ({
);
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]);