Don't show toolbar buttons on connecting tiles
Because connecting tiles don't have a feed, clicking the local volume button would cause a soft crash. This also fixes a few strict mode errors in the surrounding area while we're at it.
This commit is contained in:
parent
7b71e9b20f
commit
84a92845c3
5 changed files with 21 additions and 20 deletions
|
|
@ -68,7 +68,7 @@ export function VideoTileContainer({
|
|||
} = useCallFeed(item.callFeed);
|
||||
const { rawDisplayName } = useRoomMemberName(item.member);
|
||||
const [tileRef, mediaRef] = useSpatialMediaStream(
|
||||
stream,
|
||||
stream ?? null,
|
||||
audioContext,
|
||||
audioDestination,
|
||||
isLocal,
|
||||
|
|
@ -109,7 +109,7 @@ export function VideoTileContainer({
|
|||
onFullscreen={onFullscreenCallback}
|
||||
{...rest}
|
||||
/>
|
||||
{videoTileSettingsModalState.isOpen && !maximised && (
|
||||
{videoTileSettingsModalState.isOpen && !maximised && item.callFeed && (
|
||||
<VideoTileSettingsModal
|
||||
{...videoTileSettingsModalProps}
|
||||
feed={item.callFeed}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue