Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

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

Saúl Ibarra Corretgé3bf9c41f0813
diff --git a/react/features/conference/components/native/LonelyMeetingExperience.js b/react/features/conference/components/native/LonelyMeetingExperience.js
index 5752115cda..493257a9c7 100644
--- a/react/features/conference/components/native/LonelyMeetingExperience.js
+++ b/react/features/conference/components/native/LonelyMeetingExperience.js
@@ -7,7 +7,7 @@ import { ColorSchemeRegistry } from '../../../base/color-scheme';
import { getFeatureFlag, INVITE_ENABLED } from '../../../base/flags';
import { translate } from '../../../base/i18n';
import { Icon, IconAddPeople } from '../../../base/icons';
-import { getParticipantCount } from '../../../base/participants';
+import { getParticipantCountWithFake } from '../../../base/participants';
import { connect } from '../../../base/redux';
import { StyleType } from '../../../base/styles';
import { doInvitePeople } from '../../../invite/actions.native';
@@ -131,7 +131,7 @@ function _mapStateToProps(state): $Shape<Props> {
return {
_isInviteFunctionsDiabled: !flag || disableInviteFunctions,
- _isLonelyMeeting: conference && getParticipantCount(state) === 1,
+ _isLonelyMeeting: conference && getParticipantCountWithFake(state) === 1,
_styles: ColorSchemeRegistry.get(state, 'Conference')
};
}