🐛(frontend) prevent invite dialog to show up on mobile

While creating a meeting on mobile, the dialog was opening,
and when its width exceeds the mobile width, users are unable
to close the dialog.

Prevent the dialog opening on mobile as a hot fix.
This commit is contained in:
lebaudantoine
2025-12-09 22:16:54 +01:00
committed by aleb_the_flash
parent 2ab31189f4
commit 78e5c72310

View File

@@ -30,6 +30,7 @@ import { MediaDeviceErrorAlert } from './MediaDeviceErrorAlert'
import { usePostHog } from 'posthog-js/react' import { usePostHog } from 'posthog-js/react'
import { useConfig } from '@/api/useConfig' import { useConfig } from '@/api/useConfig'
import { isFireFox } from '@/utils/livekit' import { isFireFox } from '@/utils/livekit'
import { useIsMobile } from '@/utils/useIsMobile'
export const Conference = ({ export const Conference = ({
roomId, roomId,
@@ -169,6 +170,8 @@ export const Conference = ({
kind: null, kind: null,
}) })
const isMobile = useIsMobile()
/* /*
* Ensure stable WebSocket connection URL. This is critical for legacy browser compatibility * Ensure stable WebSocket connection URL. This is critical for legacy browser compatibility
* (Firefox <124, Chrome <125, Edge <125) where HTTPS URLs in WebSocket() constructor * (Firefox <124, Chrome <125, Edge <125) where HTTPS URLs in WebSocket() constructor
@@ -238,7 +241,7 @@ export const Conference = ({
}} }}
> >
<VideoConference /> <VideoConference />
{showInviteDialog && ( {showInviteDialog && !isMobile && (
<InviteDialog <InviteDialog
isOpen={showInviteDialog} isOpen={showInviteDialog}
onOpenChange={setShowInviteDialog} onOpenChange={setShowInviteDialog}