fix(connection-indicator): Hide indicator circle when ghost icon is hidden.

This commit is contained in:
tudordan7 2021-10-25 17:11:54 +03:00 committed by Saúl Ibarra Corretgé
parent 9ab16a0a5c
commit 072c29c0f9
2 changed files with 9 additions and 0 deletions

View File

@ -415,6 +415,11 @@
&.status-other {
background: $connectionIndicatorBg;
}
&.status-disabled {
background: transparent;
border: none
}
}
.local-video-menu-trigger,

View File

@ -180,6 +180,10 @@ class ConnectionIndicator extends AbstractConnectionIndicator<Props, AbstractSta
const { INACTIVE, INTERRUPTED } = JitsiParticipantConnectionStatus;
if (_connectionStatus === INACTIVE) {
if (this.props._connectionIndicatorInactiveDisabled) {
return 'status-disabled';
}
return 'status-other';
} else if (_connectionStatus === INTERRUPTED) {
return 'status-lost';