Allow to screenshare even when only 1 person is in the call

This commit is contained in:
harshithpabbati 2022-01-20 14:57:52 +05:30
parent 7b5235e452
commit d7fb003ad9
2 changed files with 5 additions and 5 deletions

View File

@ -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 {

View File

@ -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 />;
};