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: ...@@ -94,15 +94,13 @@ public:
auto index = sourceModel()->index(sourceRow, 0, sourceParent); auto index = sourceModel()->index(sourceRow, 0, sourceParent);
bool acceptState = !sourceModel()->data(index, CallParticipant::Role::Active).toBool(); bool acceptState = !sourceModel()->data(index, CallParticipant::Role::Active).toBool();
if (acceptState && if (acceptState && hideSelf_ && sourceModel()->rowCount() > 1
hideSelf_ && && sourceModel()->data(index, CallParticipant::Role::IsLocal).toBool()
sourceModel()->rowCount() > 1 && && !sourceModel()->data(index, CallParticipant::Role::HandRaised).toBool())
sourceModel()->data(index, CallParticipant::Role::IsLocal).toBool())
acceptState = false; acceptState = false;
if (acceptState && if (acceptState && hideAudioOnly_ && sourceModel()->rowCount() > 1
hideAudioOnly_ && && sourceModel()->data(index, CallParticipant::Role::VideoMuted).toBool()
sourceModel()->rowCount() > 1 && && !sourceModel()->data(index, CallParticipant::Role::HandRaised).toBool())
sourceModel()->data(index, CallParticipant::Role::VideoMuted).toBool())
acceptState = false; acceptState = false;
return acceptState; return acceptState;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment