From 6c10018788f3a89c3642d569d1dd1915ba236fdb Mon Sep 17 00:00:00 2001 From: Benoit Martins Date: Mon, 22 Apr 2024 14:40:26 +0200 Subject: [PATCH] Fix participant list in conf --- Linphone/UI/Call/ViewModel/CallViewModel.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Linphone/UI/Call/ViewModel/CallViewModel.swift b/Linphone/UI/Call/ViewModel/CallViewModel.swift index d0a4ee766..fa8639d48 100644 --- a/Linphone/UI/Call/ViewModel/CallViewModel.swift +++ b/Linphone/UI/Call/ViewModel/CallViewModel.swift @@ -280,7 +280,6 @@ class CallViewModel: ObservableObject { DispatchQueue.main.async { self.displayName = displayNameTmp - self.participantList = [] self.myParticipantModel = myParticipantModelTmp @@ -357,7 +356,10 @@ class CallViewModel: ObservableObject { DispatchQueue.main.async { self.activeSpeakerParticipant = activeSpeakerParticipantTmp self.activeSpeakerName = activeSpeakerNameTmp - self.participantList = participantListTmp + if (activeSpeakerParticipantBis != nil && !activeSpeakerParticipantBis!.address.equal(address2: activeSpeakerParticipantTmp.address)) + || ( activeSpeakerParticipantBis == nil) { + self.participantList = participantListTmp + } } } }