From aa3b36f306c2ff8579af824ac46f3a2c766905ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E4=BA=91=E9=BE=99?= Date: Sun, 9 Feb 2020 11:54:28 +0800 Subject: [PATCH] fix mobile device maxSpotlights bug for #120 https://github.com/havfo/multiparty-meeting/issues/120 --- app/src/RoomClient.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/RoomClient.js b/app/src/RoomClient.js index 682a74b..7437156 100644 --- a/app/src/RoomClient.js +++ b/app/src/RoomClient.js @@ -160,10 +160,10 @@ export default class RoomClient this._webTorrent = null; // Max spotlights - if (device.bowser.ios || device.bowser.mobile || device.bowser.android) - this._maxSpotlights = mobileLastN; - else + if (device.bowser.getPlatformType() === 'desktop') this._maxSpotlights = lastN; + else + this._maxSpotlights = mobileLastN; // Manager of spotlight this._spotlights = null;