Remove pip class name if a call is not active to prevent pip from spawning
This commit is contained in:
parent
af45c2bbf7
commit
f4dbc93121
1 changed files with 4 additions and 1 deletions
|
@ -165,6 +165,9 @@ function Client() {
|
||||||
|
|
||||||
const JITSI_ROOM_CLASS = 'jitsi_pip'
|
const JITSI_ROOM_CLASS = 'jitsi_pip'
|
||||||
const ROOM_CLASS = `room__wrapper ${classNameHidden}`
|
const ROOM_CLASS = `room__wrapper ${classNameHidden}`
|
||||||
|
let jitsiPip = '';
|
||||||
|
if (isJitsiRoom) jitsiPip = ROOM_CLASS;
|
||||||
|
else if (jitsiCallId) jitsiPip = JITSI_ROOM_CLASS;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
|
@ -177,7 +180,7 @@ function Client() {
|
||||||
<div className="navigation__wrapper" ref={navWrapperRef}>
|
<div className="navigation__wrapper" ref={navWrapperRef}>
|
||||||
<Navigation jitsiCallId={jitsiCallId} />
|
<Navigation jitsiCallId={jitsiCallId} />
|
||||||
</div>
|
</div>
|
||||||
<div className={isJitsiRoom ? ROOM_CLASS : JITSI_ROOM_CLASS}>
|
<div className={jitsiPip}>
|
||||||
<JitsiRoom
|
<JitsiRoom
|
||||||
isJitsiRoom={isJitsiRoom}
|
isJitsiRoom={isJitsiRoom}
|
||||||
setIsJitsiRoom={setIsJitsiRoom}
|
setIsJitsiRoom={setIsJitsiRoom}
|
||||||
|
|
Loading…
Reference in a new issue