fix(rn,conference) count fake participants when checking if lonely meeting

A shared video participant counts, so the lonely meeting invite options can
disappear.
This commit is contained in:
Saúl Ibarra Corretgé 2021-09-14 12:28:37 +02:00 committed by Saúl Ibarra Corretgé
parent 0b54e005d7
commit 3bf9c41f08
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ import { ColorSchemeRegistry } from '../../../base/color-scheme';
import { getFeatureFlag, INVITE_ENABLED } from '../../../base/flags'; import { getFeatureFlag, INVITE_ENABLED } from '../../../base/flags';
import { translate } from '../../../base/i18n'; import { translate } from '../../../base/i18n';
import { Icon, IconAddPeople } from '../../../base/icons'; import { Icon, IconAddPeople } from '../../../base/icons';
import { getParticipantCount } from '../../../base/participants'; import { getParticipantCountWithFake } from '../../../base/participants';
import { connect } from '../../../base/redux'; import { connect } from '../../../base/redux';
import { StyleType } from '../../../base/styles'; import { StyleType } from '../../../base/styles';
import { doInvitePeople } from '../../../invite/actions.native'; import { doInvitePeople } from '../../../invite/actions.native';
@ -131,7 +131,7 @@ function _mapStateToProps(state): $Shape<Props> {
return { return {
_isInviteFunctionsDiabled: !flag || disableInviteFunctions, _isInviteFunctionsDiabled: !flag || disableInviteFunctions,
_isLonelyMeeting: conference && getParticipantCount(state) === 1, _isLonelyMeeting: conference && getParticipantCountWithFake(state) === 1,
_styles: ColorSchemeRegistry.get(state, 'Conference') _styles: ColorSchemeRegistry.get(state, 'Conference')
}; };
} }