Merge pull request #122 from fouber/patch-2

fix mobile device maxSpotlights bug for #120
master
Håvar Aambø Fosstveit 2020-02-10 00:09:36 +01:00 committed by GitHub
commit 6696f0de45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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;