From 7d9c923a7935727082e8836e419e130cbee5a187 Mon Sep 17 00:00:00 2001 From: Christophe Deschamps Date: Thu, 23 Jun 2022 09:48:40 +0200 Subject: [PATCH] Fallback to AS if MaxPart > 6 only if Grid is active --- Classes/Swift/Voip/ViewModels/ConferenceViewModel.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/Swift/Voip/ViewModels/ConferenceViewModel.swift b/Classes/Swift/Voip/ViewModels/ConferenceViewModel.swift index 7dbd071d0..8d406f936 100644 --- a/Classes/Swift/Voip/ViewModels/ConferenceViewModel.swift +++ b/Classes/Swift/Voip/ViewModels/ConferenceViewModel.swift @@ -64,8 +64,8 @@ class ConferenceViewModel { Log.i("[Conference] \(conference) Participant \(participant) added") self.updateParticipantsList(conference) let count = self.conferenceParticipantDevices.value!.count - if (count > self.maxParticipantsForMosaicLayout) { - Log.w("[Conference] \(conference) More than \(self.maxParticipantsForMosaicLayout) participants \(count), forcing active speaker layout") + if (count > self.maxParticipantsForMosaicLayout && conference.currentParams?.videoEnabled == true && conference.call?.currentParams?.conferenceVideoLayout == .Grid) { + Log.w("[Conference] \(conference) More than \(self.maxParticipantsForMosaicLayout) participants \(count), forcing active speaker layout from Grid") self.conferenceDisplayMode.value = .ActiveSpeaker self.changeLayout(layout: .ActiveSpeaker) }