mirror of
https://github.com/vector-im/element-call.git
synced 2026-01-30 03:15:55 +00:00
Add comment
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user