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.
This commit is contained in:
Saúl Ibarra Corretgé 2020-07-15 14:20:22 +02:00 committed by Saúl Ibarra Corretgé
parent ef0af1a8c0
commit 36d95ed51f
1 changed files with 2 additions and 1 deletions

View File

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