Skip to content
Snippets Groups Projects
Commit 17e97ded authored by Sébastien Blin's avatar Sébastien Blin
Browse files

callparticipantsmodel: show hidden participants if hand raised

Change-Id: I35a603345a09d028a8b6511181524f82ebe9f102
GitLab: #729
parent 3164f870
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment