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:
parent
3164f8708b
commit
17e97ded71
1 changed files with 6 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue