diff --git a/www/app/(app)/browse/page.tsx b/www/app/(app)/browse/page.tsx
index 52e80454..454ff6ba 100644
--- a/www/app/(app)/browse/page.tsx
+++ b/www/app/(app)/browse/page.tsx
@@ -151,10 +151,6 @@ export default function TranscriptBrowser() {
total={response?.total || 0}
size={response?.size || 0}
/>
-
- }>
- New Meeting
-
(null);
+
const roomUrl = meeting?.response?.host_room_url
? meeting?.response?.host_room_url
: meeting?.response?.room_url;
- const handleLeave = useCallback((e) => {
+ const handleLeave = useCallback(() => {
router.push("/browse");
- }, []);
+ }, [router]);
+
+ const handleConsent = (consent: boolean) => {
+ setConsentGiven(consent);
+ };
useEffect(() => {
if (!sessionReady || !isAuthenticated || !roomUrl) return;
@@ -37,7 +44,53 @@ export default function Room(details: RoomDetails) {
return () => {
wherebyRef.current?.removeEventListener("leave", handleLeave);
};
- }, [handleLeave, roomUrl]);
+ }, [handleLeave, roomUrl, sessionReady, isAuthenticated]);
+
+ if (!isAuthenticated && !consentGiven) {
+ return (
+
+
+ {consentGiven === null ? (
+ <>
+
+ This meeting may be recorded. Do you consent to being recorded?
+
+
+
+
+
+ >
+ ) : (
+ <>
+
+ You cannot join the meeting without consenting to being
+ recorded.
+
+ >
+ )}
+
+
+ );
+ }
return (
<>