Allow to screenshare even when only 1 person is in the call
This commit is contained in:
parent
7b5235e452
commit
d7fb003ad9
|
|
@ -60,16 +60,16 @@ export const Header = () => {
|
||||||
participantCount === 1 ? 'participant' : 'participants'
|
participantCount === 1 ? 'participant' : 'participants'
|
||||||
}`}
|
}`}
|
||||||
</HeaderCapsule>
|
</HeaderCapsule>
|
||||||
|
<HeaderCapsule>
|
||||||
|
{classType}
|
||||||
|
{capsuleLabel()}
|
||||||
|
</HeaderCapsule>
|
||||||
{customCapsule && (
|
{customCapsule && (
|
||||||
<HeaderCapsule variant={customCapsule.variant}>
|
<HeaderCapsule variant={customCapsule.variant}>
|
||||||
{customCapsule.variant === 'recording' && <span />}
|
{customCapsule.variant === 'recording' && <span />}
|
||||||
{customCapsule.label}
|
{customCapsule.label}
|
||||||
</HeaderCapsule>
|
</HeaderCapsule>
|
||||||
)}
|
)}
|
||||||
<HeaderCapsule>
|
|
||||||
{classType}
|
|
||||||
{capsuleLabel()}
|
|
||||||
</HeaderCapsule>
|
|
||||||
|
|
||||||
<style jsx>{`
|
<style jsx>{`
|
||||||
.room-header {
|
.room-header {
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ export const VideoView = () => {
|
||||||
}, [screens, setIsShowingScreenshare]);
|
}, [screens, setIsShowingScreenshare]);
|
||||||
|
|
||||||
if (!participants.length) return null;
|
if (!participants.length) return null;
|
||||||
if (participants.length === 1) return <InviteOthers />;
|
if (participants.length === 1 && !screens.length > 0) return <InviteOthers />;
|
||||||
|
|
||||||
return viewMode === VIEW_MODE_SPEAKER ? <SpeakerView />: <GridView />;
|
return viewMode === VIEW_MODE_SPEAKER ? <SpeakerView />: <GridView />;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue