From 689498ce1343f60046ac100c0b4861dd0a9b9d27 Mon Sep 17 00:00:00 2001 From: "M. E. Abdelsalam" Date: Wed, 25 Dec 2024 17:40:20 +0200 Subject: [PATCH] removed: deprecated or no more necessary code has been removed. --- apps/nova/src/pages/Call.tsx | 19 +- packages/atlas/src/atlas.ts | 6 - packages/atlas/src/peer.ts | 24 -- packages/atlas/src/session.ts | 12 - packages/headless/src/sessions.ts | 149 +------ pnpm-lock.yaml | 47 ++- services/server/src/handlers/peer.ts | 87 ---- services/server/src/handlers/session.ts | 67 --- services/server/src/index.ts | 2 - .../server/src/middleware/accessControl.ts | 389 ------------------ services/server/src/routes/index.ts | 4 - services/server/src/routes/peer.ts | 10 - services/server/src/routes/session.ts | 9 - 13 files changed, 51 insertions(+), 774 deletions(-) delete mode 100644 packages/atlas/src/peer.ts delete mode 100644 packages/atlas/src/session.ts delete mode 100644 services/server/src/handlers/peer.ts delete mode 100644 services/server/src/handlers/session.ts delete mode 100644 services/server/src/middleware/accessControl.ts delete mode 100644 services/server/src/routes/peer.ts delete mode 100644 services/server/src/routes/session.ts diff --git a/apps/nova/src/pages/Call.tsx b/apps/nova/src/pages/Call.tsx index 999514349..9d5c365dd 100644 --- a/apps/nova/src/pages/Call.tsx +++ b/apps/nova/src/pages/Call.tsx @@ -16,12 +16,11 @@ import cn from "classnames"; // import Messages from "@/components/Chat/Messages"; import { orNull, orUndefined } from "@litespace/sol/utils"; import { - useSessionMembers, - // useCall, + //useSessionMembers, + //usePeerIds, useSessionV2, useFindSessionRoomById, useFullScreen, - usePeerIds, } from "@litespace/headless/sessions"; import { useDisplayRecorder } from "@litespace/headless/recorder"; import { isGhost } from "@/lib/ghost"; @@ -56,8 +55,8 @@ const Call: React.FC = () => { return callRoom.data.members.find((member) => member.id !== user?.id); }, [callRoom.data, user?.id]); - const members = useSessionMembers(sessionId); - useEffect(() => console.log("In App members: ", members), [members]); + //const members = useSessionMembers(sessionId); + //useEffect(() => console.log("In App members: ", members), [members]); // const messages = useMemo( // () => @@ -118,6 +117,7 @@ const Call: React.FC = () => { const fullScreen = useFullScreen(); + /* const peers = usePeerIds( useMemo( () => ({ @@ -130,6 +130,7 @@ const Call: React.FC = () => { [sessionId, mateInfo?.id, user?.role] ) ); + */ const onCloseSession = useCallback(() => { // peers.ghost.refetch(); @@ -150,12 +151,12 @@ const Call: React.FC = () => { useMemo( () => ({ isGhost, - ghostPeerId: orNull(peers.ghost.data), - tutorPeerId: orNull(peers.tutor.data), + ghostPeerId: orNull("ghost"), // TODO: pass peers.ghost.data + tutorPeerId: orNull("ghost"), // TODO: pass peers.tutor.data userId: orNull(user?.id), onCloseSession, }), - [onCloseSession, peers.ghost.data, peers.tutor.data, user?.id] + [onCloseSession, user?.id] ) ); @@ -302,12 +303,14 @@ const Call: React.FC = () => { /* * TODO: replace this by members views */ + /*

Joined members

{members.map((m) => ( ))}
+ */ } {/*