Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
Restores invite participants email functionality. Adds the password to the invitation email, for password protected conferences.
yanas4fbc37b3452b
diff --git a/toolbar.js b/toolbar.jsindex 5d078c2609..116b55adba 100644--- a/toolbar.js+++ b/toolbar.js@@ -5,7 +5,7 @@ var Toolbar = (function (my) {/*** Opens the lock room dialog.*/- my.openLockDialog = function() {+ my.openLockDialog = function () {// Only the focus is able to set a shared key.if (focus === null) {if (sharedKey)@@ -54,7 +54,7 @@ var Toolbar = (function (my) {submit: function (e, v, m, f) {if (v) {var lockKey = document.getElementById('lockKey');-+if (lockKey.value) {setSharedKey(Util.escapeHtml(lockKey.value));lockRoom(true);@@ -70,24 +70,75 @@ var Toolbar = (function (my) {/*** Opens the invite link dialog.*/- my.openLinkDialog = function() {+ my.openLinkDialog = function () {+ var inviteLink;+ if (roomUrl == null)+ inviteLink = "Your conference is currently being created...";+ else+ inviteLink = encodeURI(roomUrl);+$.prompt('<input id="inviteLinkRef" type="text" value="' +- encodeURI(roomUrl) + '" onclick="this.select();" readonly>',- {- title: "Share this link with everyone you want to invite",- persistent: false,- buttons: { "Cancel": false},- loaded: function (event) {- document.getElementById('inviteLinkRef').select();+ inviteLink + '" onclick="this.select();" readonly>',+ {+ title: "Share this link with everyone you want to invite",+ persistent: false,+ buttons: { "Invite": true, "Cancel": false},+ defaultButton: 1,+ loaded: function (event) {+ if (roomUrl)+ document.getElementById('inviteLinkRef').select();+ else+ document.getElementById('jqi_state0_buttonInvite')+ .disabled = true;+ },+ submit: function (e, v, m, f) {+ if (v) {+ if (roomUrl) {+ inviteParticipants();+ }+ }+ }}- }- );+ );};+ /**+ * Invite participants to conference.+ */+ function inviteParticipants() {+ if (roomUrl == null)+ return;++ var sharedKeyText = "";+ if (sharedKey && sharedKey.length > 0)+ sharedKeyText+ = "This conference is password protected. Please use the "+ + "following pin when joining:%0D%0A%0D%0A"+ + sharedKey + "%0D%0A%0D%0A";++ var conferenceName = roomUrl.substring(roomUrl.lastIndexOf('/') + 1);+ var subject = "Invitation to a Jitsi Meet (" + conferenceName + ")";+ var body = "Hey there, I%27d like to invite you to a Jitsi Meet"+ + " conference I%27ve just set up.%0D%0A%0D%0A"+ + "Please click on the following link in order"+ + " to join the conference.%0D%0A%0D%0A"+ + roomUrl + "%0D%0A%0D%0A"+ + sharedKeyText+ + "Note that Jitsi Meet is currently only supported by Chromim,"+ + " Google Chrome and Opera, so you need"+ + " to be using one of these browsers.%0D%0A%0D%0A"+ + "Talk to you in a sec!";++ if (window.localStorage.displayname)+ body += "%0D%0A%0D%0A" + window.localStorage.displayname;++ window.open("mailto:?subject=" + subject + "&body=" + body, '_blank');+ }+/*** Opens the settings dialog.*/- my.openSettingsDialog = function() {+ my.openSettingsDialog = function () {$.prompt('<h2>Configure your conference</h2>' +'<input type="checkbox" id="initMuted"> Participants join muted<br/>' +'<input type="checkbox" id="requireNicknames"> Require nicknames<br/><br/>' +@@ -104,13 +155,13 @@ var Toolbar = (function (my) {if ($('#initMuted').is(":checked")) {// it is checked}-+if ($('#requireNicknames').is(":checked")) {// it is checked}/*var lockKey = document.getElementById('lockKey');-+if (lockKey.value){setSharedKey(lockKey.value);