From dad16442b81b6a2cc7078b2645d9b19da1daf05e Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Wed, 3 Jan 2024 18:42:25 +0100 Subject: [PATCH] [mirotalk] - fix email invitation on room pwd set --- app/src/server.js | 2 +- package.json | 2 +- public/js/client.js | 7 ++++--- public/views/client.html | 10 ++++++---- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/app/src/server.js b/app/src/server.js index 06227958..3c75fcaf 100755 --- a/app/src/server.js +++ b/app/src/server.js @@ -38,7 +38,7 @@ dependencies: { * @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon * @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661 * @author Miroslav Pejic - miroslav.pejic.85@gmail.com - * @version 1.2.66 + * @version 1.2.67 * */ diff --git a/package.json b/package.json index 7e64cd55..b31a74e5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mirotalk", - "version": "1.2.66", + "version": "1.2.67", "description": "A free WebRTC browser-based video call", "main": "server.js", "scripts": { diff --git a/public/js/client.js b/public/js/client.js index 704152ec..c0661835 100644 --- a/public/js/client.js +++ b/public/js/client.js @@ -15,7 +15,7 @@ * @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon * @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661 * @author Miroslav Pejic - miroslav.pejic.85@gmail.com - * @version 1.2.66 + * @version 1.2.67 * */ @@ -5212,11 +5212,12 @@ function shareRoomByEmail() { hideClass: { popup: 'animate__animated animate__fadeOutUp' }, preConfirm: () => { const roomURL = getRoomURL(); - const selectedDateTime = document.getElementById('datetimePicker').value; const newLine = '%0D%0A%0D%0A'; + const selectedDateTime = document.getElementById('datetimePicker').value; + const roomPassword = isRoomLocked && thisRoomPassword ? 'Password: ' + thisRoomPassword + newLine : ''; const email = ''; const emailSubject = `Please join our MiroTalk P2P Video Chat Meeting`; - const emailBody = `The meeting is scheduled at: ${newLine} DateTime: ${selectedDateTime} ${newLine} Click to join: ${roomURL} ${newLine}`; + const emailBody = `The meeting is scheduled at: ${newLine} DateTime: ${selectedDateTime} ${newLine}${roomPassword}Click to join: ${roomURL} ${newLine}`; document.location = 'mailto:' + email + '?subject=' + emailSubject + '&body=' + emailBody; }, }); diff --git a/public/views/client.html b/public/views/client.html index f1b40941..ea022bf4 100755 --- a/public/views/client.html +++ b/public/views/client.html @@ -315,15 +315,17 @@ access to use this app. - -

+
+ +