瀏覽代碼

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 年之前
父節點
當前提交
3bf9c41f08
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      react/features/conference/components/native/LonelyMeetingExperience.js

+ 2
- 2
react/features/conference/components/native/LonelyMeetingExperience.js 查看文件

@@ -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
 }

Loading…
取消
儲存