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
1 changed files with 4 additions and 1 deletions

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,