Prevent too many participants for mosaic layout snack message when not in mosaic layout

This commit is contained in:
Sylvain Berfini 2022-06-22 10:36:25 +02:00
parent c6c146d213
commit 14685c550c

View file

@ -102,7 +102,10 @@ class ConferenceCallFragment : GenericFragment<VoipConferenceCallFragmentBinding
conferenceViewModel.conferenceParticipantDevices.observe(
viewLifecycleOwner
) {
if (it.size > conferenceViewModel.maxParticipantsForMosaicLayout) {
if (
conferenceViewModel.conferenceDisplayMode.value == ConferenceDisplayMode.GRID &&
it.size > conferenceViewModel.maxParticipantsForMosaicLayout
) {
showSnackBar(R.string.conference_too_many_participants_for_mosaic_layout)
}
}