Skip to content

Commit

Permalink
Merge pull request #608 from masslight/revert-607-revert-601-aykhan-e…
Browse files Browse the repository at this point in the history
…nd-call-redirect

Revert "Revert "End call redirect issue""
  • Loading branch information
AykhanAhmadli authored Nov 21, 2024
2 parents ffe579d + d1cd9bd commit 392bd03
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 392bd03

Please sign in to comment.