|
@@ -3,6 +3,7 @@
|
3
|
3
|
import React, { PureComponent } from 'react';
|
4
|
4
|
|
5
|
5
|
import { getConferenceName } from '../../base/conference';
|
|
6
|
+import { getFeatureFlag, INVITE_ENABLED } from '../../base/flags';
|
6
|
7
|
import { getLocalParticipant } from '../../base/participants';
|
7
|
8
|
import { getFieldValue } from '../../base/react';
|
8
|
9
|
import { updateSettings } from '../../base/settings';
|
|
@@ -56,6 +57,11 @@ export type Props = {
|
56
|
57
|
*/
|
57
|
58
|
dispatch: Function,
|
58
|
59
|
|
|
60
|
+ /**
|
|
61
|
+ * Indicates whether the copy url button should be shown
|
|
62
|
+ */
|
|
63
|
+ showCopyUrlButton: boolean,
|
|
64
|
+
|
59
|
65
|
/**
|
60
|
66
|
* Function to be used to translate i18n labels.
|
61
|
67
|
*/
|
|
@@ -369,8 +375,11 @@ export default class AbstractLobbyScreen<P: Props = Props> extends PureComponent
|
369
|
375
|
export function _mapStateToProps(state: Object): $Shape<Props> {
|
370
|
376
|
const localParticipant = getLocalParticipant(state);
|
371
|
377
|
const participantId = localParticipant?.id;
|
|
378
|
+ const inviteEnabledFlag = getFeatureFlag(state, INVITE_ENABLED, true);
|
|
379
|
+ const { disableInviteFunctions } = state['features/base/config'];
|
372
|
380
|
const { knocking, passwordJoinFailed } = state['features/lobby'];
|
373
|
381
|
const { iAmSipGateway } = state['features/base/config'];
|
|
382
|
+ const showCopyUrlButton = inviteEnabledFlag || !disableInviteFunctions;
|
374
|
383
|
|
375
|
384
|
return {
|
376
|
385
|
_knocking: knocking,
|
|
@@ -379,6 +388,7 @@ export function _mapStateToProps(state: Object): $Shape<Props> {
|
379
|
388
|
_participantId: participantId,
|
380
|
389
|
_participantName: localParticipant?.name,
|
381
|
390
|
_passwordJoinFailed: passwordJoinFailed,
|
382
|
|
- _renderPassword: !iAmSipGateway
|
|
391
|
+ _renderPassword: !iAmSipGateway,
|
|
392
|
+ showCopyUrlButton
|
383
|
393
|
};
|
384
|
394
|
}
|