|
|
@@ -8,7 +8,10 @@ import { getInviteURL } from '../../../../base/connection';
|
|
8
|
8
|
import { Dialog } from '../../../../base/dialog';
|
|
9
|
9
|
import { translate } from '../../../../base/i18n';
|
|
10
|
10
|
import { connect } from '../../../../base/redux';
|
|
11
|
|
-import { isLocalParticipantModerator } from '../../../../base/participants';
|
|
|
11
|
+import {
|
|
|
12
|
+ isLocalParticipantModerator,
|
|
|
13
|
+ getLocalParticipant
|
|
|
14
|
+} from '../../../../base/participants';
|
|
12
|
15
|
|
|
13
|
16
|
import { _getDefaultPhoneNumber, getDialInfoPageURL } from '../../../functions';
|
|
14
|
17
|
import DialInNumber from './DialInNumber';
|
|
|
@@ -42,6 +45,11 @@ type Props = {
|
|
42
|
45
|
*/
|
|
43
|
46
|
_inviteURL: string,
|
|
44
|
47
|
|
|
|
48
|
+ /**
|
|
|
49
|
+ * The redux representation of the local participant.
|
|
|
50
|
+ */
|
|
|
51
|
+ _localParticipant: Object,
|
|
|
52
|
+
|
|
45
|
53
|
/**
|
|
46
|
54
|
* The current location url of the conference.
|
|
47
|
55
|
*/
|
|
|
@@ -293,14 +301,18 @@ class InfoDialog extends Component<Props, State> {
|
|
293
|
301
|
* @returns {string}
|
|
294
|
302
|
*/
|
|
295
|
303
|
_getTextToCopy() {
|
|
296
|
|
- const { liveStreamViewURL, t } = this.props;
|
|
|
304
|
+ const { _localParticipant, liveStreamViewURL, t } = this.props;
|
|
297
|
305
|
const shouldDisplayDialIn = this._shouldDisplayDialIn();
|
|
298
|
306
|
const moreInfo
|
|
299
|
307
|
= shouldDisplayDialIn
|
|
300
|
308
|
? t('info.inviteURLMoreInfo', { conferenceID: this.props.dialIn.conferenceID })
|
|
301
|
309
|
: '';
|
|
302
|
310
|
|
|
303
|
|
- let invite = t('info.inviteURL', {
|
|
|
311
|
+ let invite = _localParticipant && _localParticipant.name
|
|
|
312
|
+ ? t('info.inviteURLFirstPartPersonal', { name: _localParticipant.name })
|
|
|
313
|
+ : t('info.inviteURLFirstPartGeneral');
|
|
|
314
|
+
|
|
|
315
|
+ invite += t('info.inviteURLSecondPart', {
|
|
304
|
316
|
url: this.props._inviteURL,
|
|
305
|
317
|
moreInfo
|
|
306
|
318
|
});
|
|
|
@@ -580,6 +592,7 @@ function _mapStateToProps(state) {
|
|
580
|
592
|
_conference: conference,
|
|
581
|
593
|
_conferenceName: room,
|
|
582
|
594
|
_inviteURL: getInviteURL(state),
|
|
|
595
|
+ _localParticipant: getLocalParticipant(state),
|
|
583
|
596
|
_locationURL: state['features/base/connection'].locationURL,
|
|
584
|
597
|
_locked: locked,
|
|
585
|
598
|
_password: password
|