diff --git a/index.html b/index.html index 5c06186210..4757d57b5b 100644 --- a/index.html +++ b/index.html @@ -30,7 +30,7 @@ - + @@ -51,7 +51,7 @@ - + diff --git a/interface_config.js b/interface_config.js index a9c20b65aa..78edc9c900 100644 --- a/interface_config.js +++ b/interface_config.js @@ -14,5 +14,6 @@ var interfaceConfig = { SHOW_POWERED_BY: false, GENERATE_ROOMNAMES_ON_WELCOME_PAGE: true, APP_NAME: "Jitsi Meet", + INVITATION_POWERED_BY: true, ACTIVE_SPEAKER_AVATAR_SIZE: 100 }; diff --git a/toolbar.js b/toolbar.js index 32582ae8d4..c920b10257 100644 --- a/toolbar.js +++ b/toolbar.js @@ -120,15 +120,15 @@ var Toolbar = (function (my) { } 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" + + var subject = "Invitation to a " + interfaceConfig.APP_NAME + " (" + conferenceName + ")"; + var body = "Hey there, I%27d like to invite you to a " + interfaceConfig.APP_NAME + " 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" + + "Note that " + interfaceConfig.APP_NAME + " is currently" + " only supported by Chromium," + " Google Chrome and Opera, so you need" + " to be using one of these browsers.%0D%0A%0D%0A" + @@ -138,6 +138,10 @@ var Toolbar = (function (my) { body += "%0D%0A%0D%0A" + window.localStorage.displayname; } + if (interfaceConfig.INVITATION_POWERED_BY) { + body += "%0D%0A%0D%0A--%0D%0Apowered by jitsi.org"; + } + window.open("mailto:?subject=" + subject + "&body=" + body, '_blank'); }