1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-09-10 12:03:18 +02:00

callparticipantsmodel: show hidden participants if hand raised

Change-Id: I35a603345a09d028a8b6511181524f82ebe9f102
GitLab: #729
This commit is contained in:
Sébastien Blin 2022-08-12 12:27:53 -04:00
parent 3164f8708b
commit 17e97ded71

View file

@ -94,15 +94,13 @@ public:
auto index = sourceModel()->index(sourceRow, 0, sourceParent);
bool acceptState = !sourceModel()->data(index, CallParticipant::Role::Active).toBool();
if (acceptState &&
hideSelf_ &&
sourceModel()->rowCount() > 1 &&
sourceModel()->data(index, CallParticipant::Role::IsLocal).toBool())
if (acceptState && hideSelf_ && sourceModel()->rowCount() > 1
&& sourceModel()->data(index, CallParticipant::Role::IsLocal).toBool()
&& !sourceModel()->data(index, CallParticipant::Role::HandRaised).toBool())
acceptState = false;
if (acceptState &&
hideAudioOnly_ &&
sourceModel()->rowCount() > 1 &&
sourceModel()->data(index, CallParticipant::Role::VideoMuted).toBool())
if (acceptState && hideAudioOnly_ && sourceModel()->rowCount() > 1
&& sourceModel()->data(index, CallParticipant::Role::VideoMuted).toBool()
&& !sourceModel()->data(index, CallParticipant::Role::HandRaised).toBool())
acceptState = false;
return acceptState;