|
@@ -3,6 +3,7 @@
|
3
|
3
|
import { getActiveSession } from '../../features/recording/functions';
|
4
|
4
|
import { getRoomName } from '../base/conference';
|
5
|
5
|
import { getInviteURL } from '../base/connection';
|
|
6
|
+import { isIosMobileBrowser } from '../base/environment/utils';
|
6
|
7
|
import { i18next } from '../base/i18n';
|
7
|
8
|
import { JitsiRecordingConstants } from '../base/lib-jitsi-meet';
|
8
|
9
|
import { getLocalParticipant, isLocalParticipantModerator } from '../base/participants';
|
|
@@ -251,6 +252,49 @@ export function getInviteResultsForQuery(
|
251
|
252
|
});
|
252
|
253
|
}
|
253
|
254
|
|
|
255
|
+/**
|
|
256
|
+ * Creates a custom no new lines message for iOS default mail describing how to dial in to the conference.
|
|
257
|
+ *
|
|
258
|
+ * @returns {string}
|
|
259
|
+ */
|
|
260
|
+export function getInviteTextiOS({
|
|
261
|
+ state,
|
|
262
|
+ phoneNumber,
|
|
263
|
+ t
|
|
264
|
+}: Object) {
|
|
265
|
+ if (!isIosMobileBrowser()) {
|
|
266
|
+ return '';
|
|
267
|
+ }
|
|
268
|
+
|
|
269
|
+ const dialIn = state['features/invite'];
|
|
270
|
+ const inviteUrl = getInviteURL(state);
|
|
271
|
+ const localParticipant = getLocalParticipant(state);
|
|
272
|
+ const localParticipantName = localParticipant?.name;
|
|
273
|
+
|
|
274
|
+ const inviteURL = _decodeRoomURI(inviteUrl);
|
|
275
|
+
|
|
276
|
+ let invite = localParticipantName
|
|
277
|
+ ? t('info.inviteTextiOSPersonal', { name: localParticipantName })
|
|
278
|
+ : t('info.inviteURLFirstPartGeneral');
|
|
279
|
+
|
|
280
|
+ invite += ' ';
|
|
281
|
+
|
|
282
|
+ invite += t('info.inviteTextiOSInviteUrl', { inviteUrl });
|
|
283
|
+ invite += ' ';
|
|
284
|
+
|
|
285
|
+ if (shouldDisplayDialIn(dialIn)) {
|
|
286
|
+ invite += t('info.inviteTextiOSPhone', {
|
|
287
|
+ number: phoneNumber,
|
|
288
|
+ conferenceID: dialIn.conferenceID,
|
|
289
|
+ didUrl: getDialInfoPageURL(state)
|
|
290
|
+ });
|
|
291
|
+ }
|
|
292
|
+ invite += ' ';
|
|
293
|
+ invite += t('info.inviteTextiOSJoinSilent', { silentUrl: `${inviteURL}#config.startSilent=true` });
|
|
294
|
+
|
|
295
|
+ return invite;
|
|
296
|
+}
|
|
297
|
+
|
254
|
298
|
/**
|
255
|
299
|
* Creates a message describing how to dial in to the conference.
|
256
|
300
|
*
|
|
@@ -271,7 +315,6 @@ export function getInviteText({
|
271
|
315
|
const localParticipantName = localParticipant?.name;
|
272
|
316
|
|
273
|
317
|
const inviteURL = _decodeRoomURI(inviteUrl);
|
274
|
|
-
|
275
|
318
|
let invite = localParticipantName
|
276
|
319
|
? t('info.inviteURLFirstPartPersonal', { name: localParticipantName })
|
277
|
320
|
: t('info.inviteURLFirstPartGeneral');
|