diff --git a/src/app/features/call/CallView.tsx b/src/app/features/call/CallView.tsx index 053775e40..817aaf17f 100644 --- a/src/app/features/call/CallView.tsx +++ b/src/app/features/call/CallView.tsx @@ -18,7 +18,7 @@ import { useLivekitSupport } from '../../hooks/useLivekitSupport'; function LivekitServerMissingMessage() { return ( - Your homeserver does not support calling. But you can still join call started by others. + Your homeserver does not support calling. ); } @@ -30,12 +30,12 @@ function JoinMessage({ hasParticipant?: boolean; livekitSupported?: boolean; }) { - if (hasParticipant) return null; - if (livekitSupported === false) { return ; } + if (hasParticipant) return null; + return ( Voice chat’s empty — Be the first to hop in! @@ -80,7 +80,7 @@ function CallPrescreen() { const callEmbed = useCallEmbed(); const inOtherCall = callEmbed && callEmbed.roomId !== room.roomId; - const canJoin = hasPermission && (livekitSupported || hasParticipant); + const canJoin = hasPermission && livekitSupported; return ( diff --git a/src/app/features/room-nav/RoomNavItem.tsx b/src/app/features/room-nav/RoomNavItem.tsx index fb8794862..593f152f0 100644 --- a/src/app/features/room-nav/RoomNavItem.tsx +++ b/src/app/features/room-nav/RoomNavItem.tsx @@ -298,8 +298,8 @@ export function RoomNavItem({ mx.getSafeUserId() ); - // Do not join if missing permissions or no livekit support and call is not started by others - if (!hasCallPermission || (!livekitSupport(autoDiscoveryInfo) && callMembers.length === 0)) { + // Do not join if missing permissions or no livekit support + if (!hasCallPermission || !livekitSupport(autoDiscoveryInfo)) { return; }