Show self-view when waiting in 1:1 calls
This commit is contained in:
parent
7e1c147eac
commit
615539ed6d
1 changed files with 12 additions and 6 deletions
|
@ -342,13 +342,19 @@ export function CallScreen({
|
||||||
throw missingCaseError(activeCall);
|
throw missingCaseError(activeCall);
|
||||||
}
|
}
|
||||||
|
|
||||||
let lonelyInGroupNode: ReactNode;
|
let lonelyInCallNode: ReactNode;
|
||||||
let localPreviewNode: ReactNode;
|
let localPreviewNode: ReactNode;
|
||||||
if (
|
|
||||||
|
const isLonelyInGroup =
|
||||||
activeCall.callMode === CallMode.Group &&
|
activeCall.callMode === CallMode.Group &&
|
||||||
!activeCall.remoteParticipants.length
|
!activeCall.remoteParticipants.length;
|
||||||
) {
|
|
||||||
lonelyInGroupNode = (
|
const isLonelyInDirectCall =
|
||||||
|
activeCall.callMode === CallMode.Direct &&
|
||||||
|
activeCall.callState !== CallState.Accepted;
|
||||||
|
|
||||||
|
if (isLonelyInGroup || isLonelyInDirectCall) {
|
||||||
|
lonelyInCallNode = (
|
||||||
<div
|
<div
|
||||||
className={classNames(
|
className={classNames(
|
||||||
'module-ongoing-call__local-preview-fullsize',
|
'module-ongoing-call__local-preview-fullsize',
|
||||||
|
@ -506,7 +512,7 @@ export function CallScreen({
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{remoteParticipantsElement}
|
{remoteParticipantsElement}
|
||||||
{lonelyInGroupNode}
|
{lonelyInCallNode}
|
||||||
<div className="module-ongoing-call__footer">
|
<div className="module-ongoing-call__footer">
|
||||||
{/* This layout-only element is not ideal.
|
{/* This layout-only element is not ideal.
|
||||||
See the comment in _modules.css for more. */}
|
See the comment in _modules.css for more. */}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue