diff --git a/frontend/app/lib/client-socket-provider.tsx b/frontend/app/lib/client-socket-provider.tsx index 13a8f76e..99d8be43 100644 --- a/frontend/app/lib/client-socket-provider.tsx +++ b/frontend/app/lib/client-socket-provider.tsx @@ -25,9 +25,17 @@ export default function SocketProvider() { const pathName = usePathname(); const router = useRouter(); + const showDeleteRoomNotificationToast = () => { + toast({ + title: 'Notification', + description: 'The chat room has been deleted', + }); + }; + const handleDeleteRoomEvent = useCallback( (data: DeleteRoomEvent) => { if (pathName === "/room/" + data.roomId.toString()) { + showDeleteRoomNotificationToast(); router.push("/room"); router.refresh(); } else if (