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(); }