瀏覽代碼

rn,conference: show lonely experience only after joining

Showing the modal earlier is weird because it will be closed as soon as we
connect. Also, we don't know if we are going to be alone until we join.
master
Saúl Ibarra Corretgé 5 年之前
父節點
當前提交
36d95ed51f
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      react/features/conference/components/native/LonelyMeetingExperience.js

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

@@ -126,11 +126,12 @@ class LonelyMeetingExperience extends PureComponent<Props> {
126 126
  */
127 127
 function _mapStateToProps(state): $Shape<Props> {
128 128
     const { disableInviteFunctions } = state['features/base/config'];
129
+    const { conference } = state['features/base/conference'];
129 130
     const flag = getFeatureFlag(state, INVITE_ENABLED, true);
130 131
 
131 132
     return {
132 133
         _isInviteFunctionsDiabled: !flag || disableInviteFunctions,
133
-        _isLonelyMeeting: getParticipantCount(state) === 1,
134
+        _isLonelyMeeting: conference && getParticipantCount(state) === 1,
134 135
         _styles: ColorSchemeRegistry.get(state, 'Conference')
135 136
     };
136 137
 }

Loading…
取消
儲存