Temporary workaround to prevent showing last person who speaked above our video when all participants leave a conference while in active speaker layout
This commit is contained in:
parent
b588b10811
commit
4636f6c4ea
1 changed files with 5 additions and 0 deletions
|
@ -77,6 +77,11 @@ class ConferenceViewModel : ViewModel() {
|
|||
|
||||
if (conferenceParticipants.value.orEmpty().isEmpty()) {
|
||||
allParticipantsLeftEvent.value = Event(true)
|
||||
// TODO: FIXME: Temporary workaround when alone in a conference in active speaker layout
|
||||
val meDeviceData = conferenceParticipantDevices.value.orEmpty().firstOrNull()
|
||||
if (meDeviceData != null) {
|
||||
speakingParticipant.value = meDeviceData!!
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue