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

callparticipantsmodel: show participants on voice activity

Change-Id: Ie15302269656e09b3af0dd34f402234e05f54338
GitLab: #802
parent ce3afea9
No related branches found
No related tags found
No related merge requests found
......@@ -95,13 +95,11 @@ 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()
&& !sourceModel()->data(index, CallParticipant::Role::HandRaised).toBool())
acceptState = false;
if (acceptState && hideAudioOnly_ && sourceModel()->rowCount() > 1
&& sourceModel()->data(index, CallParticipant::Role::VideoMuted).toBool()
&& !sourceModel()->data(index, CallParticipant::Role::HandRaised).toBool())
bool importantState = sourceModel()->data(index, CallParticipant::Role::HandRaised).toBool()
|| sourceModel()->data(index, CallParticipant::Role::VoiceActivity).toBool();
if (acceptState && !importantState
&& ((hideSelf_ && sourceModel()->rowCount() > 1 && sourceModel()->data(index, CallParticipant::Role::IsLocal).toBool())
|| (hideAudioOnly_ && sourceModel()->rowCount() > 1 && sourceModel()->data(index, CallParticipant::Role::VideoMuted).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