Fix PiP and call settings in reconnecting calls
This commit is contained in:
parent
ea37980fc3
commit
3ff9b87a22
3 changed files with 7 additions and 2 deletions
|
@ -4258,6 +4258,10 @@ button.module-image__border-overlay:focus {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&__controls {
|
||||||
|
z-index: $z-index-above-above-base;
|
||||||
|
}
|
||||||
|
|
||||||
&__controls--fadeIn {
|
&__controls--fadeIn {
|
||||||
@include module-ongoing-call__controls--fade-in;
|
@include module-ongoing-call__controls--fade-in;
|
||||||
}
|
}
|
||||||
|
@ -4271,7 +4275,6 @@ button.module-image__border-overlay:focus {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: calc(32px + var(--title-bar-drag-area-height));
|
top: calc(32px + var(--title-bar-drag-area-height));
|
||||||
inset-inline-end: 0;
|
inset-inline-end: 0;
|
||||||
z-index: $z-index-above-above-base;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
&__button {
|
&__button {
|
||||||
|
|
|
@ -491,6 +491,7 @@ export function CallScreen({
|
||||||
|
|
||||||
const controlsFadedOut = !showControls && !isAudioOnly && isConnected;
|
const controlsFadedOut = !showControls && !isAudioOnly && isConnected;
|
||||||
const controlsFadeClass = classNames({
|
const controlsFadeClass = classNames({
|
||||||
|
'module-ongoing-call__controls': true,
|
||||||
'module-ongoing-call__controls--fadeIn':
|
'module-ongoing-call__controls--fadeIn':
|
||||||
(showControls || isAudioOnly) && !isConnected,
|
(showControls || isAudioOnly) && !isConnected,
|
||||||
'module-ongoing-call__controls--fadeOut': controlsFadedOut,
|
'module-ongoing-call__controls--fadeOut': controlsFadedOut,
|
||||||
|
|
|
@ -7,10 +7,11 @@ import {
|
||||||
GroupCallConnectionState,
|
GroupCallConnectionState,
|
||||||
} from '../types/Calling';
|
} from '../types/Calling';
|
||||||
import type { ActiveCallType } from '../types/Calling';
|
import type { ActiveCallType } from '../types/Calling';
|
||||||
|
import { isGroupOrAdhocActiveCall } from './isGroupOrAdhocCall';
|
||||||
|
|
||||||
export function isReconnecting(activeCall: ActiveCallType): boolean {
|
export function isReconnecting(activeCall: ActiveCallType): boolean {
|
||||||
return (
|
return (
|
||||||
(activeCall.callMode === CallMode.Group &&
|
(isGroupOrAdhocActiveCall(activeCall) &&
|
||||||
activeCall.connectionState === GroupCallConnectionState.Reconnecting) ||
|
activeCall.connectionState === GroupCallConnectionState.Reconnecting) ||
|
||||||
(activeCall.callMode === CallMode.Direct &&
|
(activeCall.callMode === CallMode.Direct &&
|
||||||
activeCall.callState === CallState.Reconnecting)
|
activeCall.callState === CallState.Reconnecting)
|
||||||
|
|
Loading…
Reference in a new issue