Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(rn) fix iOS rendering when launched locked

val11n16a62c5120f41
diff --git a/react/features/filmstrip/components/native/Filmstrip.tsx b/react/features/filmstrip/components/native/Filmstrip.tsx
index ad0d927ae0..ef82de7a4c 100644
--- a/react/features/filmstrip/components/native/Filmstrip.tsx
+++ b/react/features/filmstrip/components/native/Filmstrip.tsx
@@ -253,9 +253,13 @@ class Filmstrip extends PureComponent<IProps> {
const filmstripStyle = isNarrowAspectRatio ? styles.filmstripNarrow : styles.filmstripWide;
const { height, width } = this._getDimensions();
const { height: thumbnailHeight, width: thumbnailWidth, margin } = styles.thumbnail;
- const initialNumToRender = Math.ceil(isNarrowAspectRatio
- ? width / (thumbnailWidth + (2 * margin))
- : height / (thumbnailHeight + (2 * margin))
+ const initialNumToRender = Math.max(
+ 0,
+ Math.ceil(
+ isNarrowAspectRatio
+ ? width / (thumbnailWidth + (2 * margin))
+ : height / (thumbnailHeight + (2 * margin))
+ )
);
let participants;