|
|
|
@ -3,6 +3,7 @@ |
|
|
|
|
import React, { PureComponent } from 'react'; |
|
|
|
|
|
|
|
|
|
import { getConferenceName } from '../../base/conference'; |
|
|
|
|
import { getFeatureFlag, INVITE_ENABLED } from '../../base/flags'; |
|
|
|
|
import { getLocalParticipant } from '../../base/participants'; |
|
|
|
|
import { getFieldValue } from '../../base/react'; |
|
|
|
|
import { updateSettings } from '../../base/settings'; |
|
|
|
@ -56,6 +57,11 @@ export type Props = { |
|
|
|
|
*/ |
|
|
|
|
dispatch: Function, |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Indicates whether the copy url button should be shown |
|
|
|
|
*/ |
|
|
|
|
showCopyUrlButton: boolean, |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Function to be used to translate i18n labels. |
|
|
|
|
*/ |
|
|
|
@ -369,8 +375,11 @@ export default class AbstractLobbyScreen<P: Props = Props> extends PureComponent |
|
|
|
|
export function _mapStateToProps(state: Object): $Shape<Props> { |
|
|
|
|
const localParticipant = getLocalParticipant(state); |
|
|
|
|
const participantId = localParticipant?.id; |
|
|
|
|
const inviteEnabledFlag = getFeatureFlag(state, INVITE_ENABLED, true); |
|
|
|
|
const { disableInviteFunctions } = state['features/base/config']; |
|
|
|
|
const { knocking, passwordJoinFailed } = state['features/lobby']; |
|
|
|
|
const { iAmSipGateway } = state['features/base/config']; |
|
|
|
|
const showCopyUrlButton = inviteEnabledFlag || !disableInviteFunctions; |
|
|
|
|
|
|
|
|
|
return { |
|
|
|
|
_knocking: knocking, |
|
|
|
@ -379,6 +388,7 @@ export function _mapStateToProps(state: Object): $Shape<Props> { |
|
|
|
|
_participantId: participantId, |
|
|
|
|
_participantName: localParticipant?.name, |
|
|
|
|
_passwordJoinFailed: passwordJoinFailed, |
|
|
|
|
_renderPassword: !iAmSipGateway |
|
|
|
|
_renderPassword: !iAmSipGateway, |
|
|
|
|
showCopyUrlButton |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|