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) }