Fixed participants list in expanded meeting list cell
This commit is contained in:
parent
7386e12e6d
commit
18756a840d
1 changed files with 9 additions and 4 deletions
|
@ -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
|
||||
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
|
||||
if (!allSpeaker) {
|
||||
participantsExpanded.value = participantsListExpanded
|
||||
speakersExpanded.value = speakersListExpanded
|
||||
isBroadcast.value = true
|
||||
} else {
|
||||
participantsExpanded.value = speakersListExpanded
|
||||
isBroadcast.value = false
|
||||
}
|
||||
Log.i(
|
||||
"[Scheduled Conference] Conference [${subject.value}] is a ${if (allSpeaker) "meeting" else "broadcast"}"
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue