Przeglądaj źródła

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

A shared video participant counts, so the lonely meeting invite options can
disappear.
master
Saúl Ibarra Corretgé 4 lat temu
rodzic
commit
3bf9c41f08

+ 2
- 2
react/features/conference/components/native/LonelyMeetingExperience.js Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz