Add comment
This commit is contained in:
@@ -200,6 +200,9 @@ export const InCallView: FC<InCallViewProps> = ({
|
|||||||
);
|
);
|
||||||
|
|
||||||
const onLeavePress = useCallback(() => {
|
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();
|
livekitRoom.disconnect();
|
||||||
onLeave();
|
onLeave();
|
||||||
}, [livekitRoom, onLeave]);
|
}, [livekitRoom, onLeave]);
|
||||||
|
|||||||
Reference in New Issue
Block a user