mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-02-15 07:28:59 +00:00
Ensure setLocalPreviewContainer is called when video is enabled
This commit is contained in:
@@ -552,6 +552,9 @@ export function CallScreen({
|
||||
);
|
||||
|
||||
React.useLayoutEffect(() => {
|
||||
if (!isSendingVideo) {
|
||||
return;
|
||||
}
|
||||
if (isLonelyInCall && !lonelyCallPreviewRef.current) {
|
||||
return;
|
||||
}
|
||||
@@ -571,7 +574,7 @@ export function CallScreen({
|
||||
sizeCallback: handleSize,
|
||||
});
|
||||
}
|
||||
}, [handleSize, isLonelyInCall, setLocalPreviewContainer]);
|
||||
}, [isSendingVideo, handleSize, isLonelyInCall, setLocalPreviewContainer]);
|
||||
|
||||
const { selfViewExpanded } = activeCall;
|
||||
const previousSelfViewExpanded = usePrevious(
|
||||
|
||||
@@ -480,6 +480,9 @@ export function CallingPip({
|
||||
);
|
||||
|
||||
React.useLayoutEffect(() => {
|
||||
if (!isSendingVideo) {
|
||||
return;
|
||||
}
|
||||
if (isLonelyInCall && !lonelyCallPreviewRef.current) {
|
||||
return;
|
||||
}
|
||||
@@ -499,7 +502,7 @@ export function CallingPip({
|
||||
sizeCallback: handleSize,
|
||||
});
|
||||
}
|
||||
}, [handleSize, isLonelyInCall, setLocalPreviewContainer]);
|
||||
}, [isSendingVideo, handleSize, isLonelyInCall, setLocalPreviewContainer]);
|
||||
|
||||
if (isLonelyInCall) {
|
||||
remoteVideoNode = (
|
||||
|
||||
Reference in New Issue
Block a user