Never pass negative speaker height to RingRTC

This commit is contained in:
Fedor Indutny 2022-09-12 12:50:13 -07:00 committed by GitHub
parent 380833447f
commit 9bc4117259
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -380,7 +380,10 @@ export const GroupCallRemoteParticipants: React.FC<PropsType> = ({
break;
}
setGroupCallVideoRequest(videoRequest, gridParticipantHeight);
setGroupCallVideoRequest(
videoRequest,
clamp(gridParticipantHeight, 0, MAX_FRAME_HEIGHT)
);
}, [
devicePixelRatio,
gridParticipantHeight,