From d524cbaaf009c770f22bbc81afc7ca451ecae089 Mon Sep 17 00:00:00 2001 From: Christophe Deschamps Date: Sat, 23 Jul 2022 02:07:59 +0200 Subject: [PATCH] Aligned speaking participant with Android --- Classes/Swift/Voip/ViewModels/ConferenceViewModel.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Classes/Swift/Voip/ViewModels/ConferenceViewModel.swift b/Classes/Swift/Voip/ViewModels/ConferenceViewModel.swift index 22fd0eb53..8e47be676 100644 --- a/Classes/Swift/Voip/ViewModels/ConferenceViewModel.swift +++ b/Classes/Swift/Voip/ViewModels/ConferenceViewModel.swift @@ -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)