Skip to content

Commit

Permalink
Revert "Revert "End call redirect issue""
Browse files Browse the repository at this point in the history
  • Loading branch information
AykhanAhmadli authored Nov 21, 2024
1 parent ffe579d commit d1cd9bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/telemed-intake/app/src/components/VideoControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ import { CallSettingsTooltip } from './CallSettingsTooltip';
import { useVideoCallStore } from '../features/video-call';
import { otherColors } from '../IntakeThemeProvider';
import { CallSettings } from './CallSettingsDialog';
import { useNavigate } from 'react-router-dom';
import { IntakeFlowPageRoute } from 'src/App';

export const VideoControls: FC = () => {
const { toggleVideo, isVideoEnabled } = useLocalVideo();
const { muted, toggleMute } = useToggleLocalMute();
const navigate = useNavigate();

const meetingManager = useMeetingManager();
const [isSettingsOpen, setIsSettingsOpen] = useState(false);
Expand Down Expand Up @@ -46,6 +49,7 @@ export const VideoControls: FC = () => {
const disconnect = async (): Promise<void> => {
await cleanup();
useVideoCallStore.setState({ meetingData: null });
navigate(IntakeFlowPageRoute.PatientPortal.path);
};

return (
Expand Down

0 comments on commit d1cd9bd

Please sign in to comment.