Ver código fonte

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 anos atrás
pai
commit
36d95ed51f

+ 2
- 1
react/features/conference/components/native/LonelyMeetingExperience.js Ver arquivo

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

Carregando…
Cancelar
Salvar