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:
Sylvain Berfini 2022-07-27 10:33:39 +02:00
parent b588b10811
commit 4636f6c4ea

View file

@ -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!!
}
}
}