From 157ee1c4ae236c672f11abc7e48fc41e72d7f6fa Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Thu, 25 Aug 2022 18:26:58 +0200 Subject: [PATCH] If available, use a remote device as ActiveSpeaker to display its informations. --- .../components/participant/ParticipantDeviceListModel.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/linphone-app/src/components/participant/ParticipantDeviceListModel.cpp b/linphone-app/src/components/participant/ParticipantDeviceListModel.cpp index 8406579ca..fa279c423 100644 --- a/linphone-app/src/components/participant/ParticipantDeviceListModel.cpp +++ b/linphone-app/src/components/participant/ParticipantDeviceListModel.cpp @@ -165,7 +165,10 @@ QSharedPointer ParticipantDeviceListModel::getMe(int * i ParticipantDeviceModel* ParticipantDeviceListModel::getLastActiveSpeaking() const{ if( mActiveSpeakers.size() == 0){ - return getMe().get(); + if( mList.size() == 0) + return getMe().get(); + else + return mList.back().objectCast().get(); }else return mActiveSpeakers.first(); }