Skip to content

Commit

Permalink
Never pass negative speaker height to RingRTC
Browse files Browse the repository at this point in the history
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
  • Loading branch information
automated-signal and indutny-signal committed Sep 12, 2022
1 parent 2454432 commit 0917f22
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ts/components/GroupCallRemoteParticipants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,10 @@ export const GroupCallRemoteParticipants: React.FC<PropsType> = ({
break;
}

setGroupCallVideoRequest(videoRequest, gridParticipantHeight);
setGroupCallVideoRequest(
videoRequest,
clamp(gridParticipantHeight, 0, MAX_FRAME_HEIGHT)
);
}, [
devicePixelRatio,
gridParticipantHeight,
Expand Down

0 comments on commit 0917f22

Please sign in to comment.