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'
|
||||
}`}
|
||||
</HeaderCapsule>
|
||||
<HeaderCapsule>
|
||||
{classType}
|
||||
{capsuleLabel()}
|
||||
</HeaderCapsule>
|
||||
{customCapsule && (
|
||||
<HeaderCapsule variant={customCapsule.variant}>
|
||||
{customCapsule.variant === 'recording' && <span />}
|
||||
{customCapsule.label}
|
||||
</HeaderCapsule>
|
||||
)}
|
||||
<HeaderCapsule>
|
||||
{classType}
|
||||
{capsuleLabel()}
|
||||
</HeaderCapsule>
|
||||
|
||||
<style jsx>{`
|
||||
.room-header {
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ export const VideoView = () => {
|
|||
}, [screens, setIsShowingScreenshare]);
|
||||
|
||||
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 />;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue