From a73524ff8a03833259317b74b8af50715df7e5c1 Mon Sep 17 00:00:00 2001 From: obrucheoghene Date: Tue, 25 Nov 2025 12:21:25 +0100 Subject: [PATCH 1/3] feat: handle end room --- src/components/room/end.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/room/end.tsx b/src/components/room/end.tsx index 9a8ea71..70e8192 100644 --- a/src/components/room/end.tsx +++ b/src/components/room/end.tsx @@ -9,12 +9,17 @@ import { } from '../ui/dropdown-menu'; import { useCautionActions } from '@/store/conf/hooks'; import { CautionType } from '@/types'; +import { useSignaling } from '@/hooks/use-signaling'; +import { Actions } from '@/types/actions'; const End = () => { const cautionActions = useCautionActions(); + const { signalingService } = useSignaling(); const handleLeaveCall = () => { - window.location.reload(); + signalingService?.sendMessage({ + action: Actions.EndRoom, + }); }; return (
From 61a4e02fdda01c393c880613280816d8315068a3 Mon Sep 17 00:00:00 2001 From: obrucheoghene Date: Tue, 25 Nov 2025 12:50:07 +0100 Subject: [PATCH 2/3] style: make setting modal responsive --- src/components/modals/settings-modal.tsx | 26 +++++++++++++++--------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/src/components/modals/settings-modal.tsx b/src/components/modals/settings-modal.tsx index 55d6e60..8f705f0 100644 --- a/src/components/modals/settings-modal.tsx +++ b/src/components/modals/settings-modal.tsx @@ -50,7 +50,7 @@ const NotificationToggle: FC = ({
{icon} - {label} + {label}
); @@ -235,7 +239,7 @@ const MediaDeviceDropdown = ({ ) : ( )} - + {devices .find(device => device.deviceId === selectedDeviceId) ?.label.toString()} @@ -275,11 +279,13 @@ const SettingsModal: FC = () => { return ( - +
{/* Left Sidebar */} -
-

Settings

+
+

+ Settings +

{/* Right Content Area */} -
+
{activeTab === 'device' && ( Date: Tue, 25 Nov 2025 12:53:38 +0100 Subject: [PATCH 3/3] feat: handle end meeting --- src/components/modals/caution-modal.tsx | 7 ++++++- src/components/room/end.tsx | 7 +------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/modals/caution-modal.tsx b/src/components/modals/caution-modal.tsx index 71553cc..2678fa4 100644 --- a/src/components/modals/caution-modal.tsx +++ b/src/components/modals/caution-modal.tsx @@ -3,8 +3,11 @@ import { Dialog, DialogContent } from '../ui/dialog'; import { Button } from '../ui/button'; import { CautionType } from '@/types'; import { useCautionActions, useCautionActive } from '@/store/conf/hooks'; +import { useSignaling } from '@/hooks/use-signaling'; +import { Actions } from '@/types/actions'; const CautionModal = () => { + const { signalingService } = useSignaling(); const cautionActive = useCautionActive(); const cautionActions = useCautionActions(); @@ -36,7 +39,9 @@ const CautionModal = () => { START_RECORDING: () => {}, STOP_RECORDING: () => {}, END_SESSION: () => { - window.location.reload(); + signalingService?.sendMessage({ + action: Actions.EndRoom, + }); }, REMOVE_PEER: () => {}, HIDE: () => { diff --git a/src/components/room/end.tsx b/src/components/room/end.tsx index 70e8192..9a8ea71 100644 --- a/src/components/room/end.tsx +++ b/src/components/room/end.tsx @@ -9,17 +9,12 @@ import { } from '../ui/dropdown-menu'; import { useCautionActions } from '@/store/conf/hooks'; import { CautionType } from '@/types'; -import { useSignaling } from '@/hooks/use-signaling'; -import { Actions } from '@/types/actions'; const End = () => { const cautionActions = useCautionActions(); - const { signalingService } = useSignaling(); const handleLeaveCall = () => { - signalingService?.sendMessage({ - action: Actions.EndRoom, - }); + window.location.reload(); }; return (