Aligned speaking participant with Android

This commit is contained in:
Christophe Deschamps 2022-07-23 02:07:59 +02:00
parent c8bc8793c6
commit d524cbaaf0

View file

@ -278,6 +278,7 @@ class ConferenceViewModel {
self.conferenceParticipantDevices.value?.forEach{ $0.destroy()}
conferenceParticipants.value = []
conferenceParticipantDevices.value = []
speakingParticipant.value = nil
}
@ -316,6 +317,11 @@ class ConferenceViewModel {
}
}
if (devices.count > 0) {
speakingParticipant.value = devices.first
}
conference.me?.devices.forEach { (device) in
Log.i("[Conference] \(conference) Participant device for myself found: \(device.name) (\(device.address!.asStringUriOnly()))")
let deviceData = ConferenceParticipantDeviceData(participantDevice: device, isMe: true)