Fixed participants list in expanded meeting list cell

This commit is contained in:
Sylvain Berfini 2023-12-14 10:20:28 +01:00
parent 7386e12e6d
commit 18756a840d

View file

@ -172,6 +172,7 @@ class ScheduledConferenceData(val conferenceInfo: ConferenceInfo, private val is
}
else -> { // For meetings created before 5.3 SDK
participantsListExpanded += "$name ($address)\n"
allSpeaker = false
}
}
}
@ -180,11 +181,15 @@ class ScheduledConferenceData(val conferenceInfo: ConferenceInfo, private val is
speakersListExpanded = speakersListExpanded.dropLast(1)
participantsShort.value = participantsListShort
// If all participants have Speaker role then it is a meeting, else it is a broadcast
if (!allSpeaker) {
participantsExpanded.value = participantsListExpanded
speakersExpanded.value = speakersListExpanded
// If all participants have Speaker role then it is a meeting, else it is a broadcast
isBroadcast.value = allSpeaker == false
isBroadcast.value = true
} else {
participantsExpanded.value = speakersListExpanded
isBroadcast.value = false
}
Log.i(
"[Scheduled Conference] Conference [${subject.value}] is a ${if (allSpeaker) "meeting" else "broadcast"}"
)