If available, use a remote device as ActiveSpeaker to display its informations.

This commit is contained in:
Julien Wadel 2022-08-25 18:26:58 +02:00
parent d0461d5ec2
commit 157ee1c4ae

View file

@ -165,7 +165,10 @@ QSharedPointer<ParticipantDeviceModel> 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<ParticipantDeviceModel>().get();
}else
return mActiveSpeakers.first();
}