[mirotalk] - fix email invitation on room pwd set

This commit is contained in:
Miroslav Pejic
2024-01-03 18:42:25 +01:00
parent a599d53ec5
commit dad16442b8
4 changed files with 12 additions and 9 deletions
+1 -1
View File
@@ -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
*
*/
+1 -1
View File
@@ -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": {
+4 -3
View File
@@ -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;
},
});
+6 -4
View File
@@ -315,15 +315,17 @@ access to use this app.
</td>
</tr>
</table>
<button id="roomSendEmailBtn">
<i class="fas fa-envelope-circle-check"></i>&nbsp;Send email invitation
</button>
<br />
<div id="tabRoomSecurity">
<button id="lockRoomBtn"><i class="fas fa-lock-open"></i>&nbsp;Lock room</button>
<button id="unlockRoomBtn"><i class="fas fa-lock"></i>&nbsp;Unlock room</button>
<br />
</div>
<div style="margin-bottom: 5px">
<button id="roomSendEmailBtn">
<i class="fas fa-envelope-circle-check"></i>&nbsp;Send email invitation
<br />
</button>
</div>
<br />
<table id="mySettingsTable">
<tr>