[mirotalksfu] - welcome cloudron.io, add email notify/alerts, update dep

هذا الالتزام موجود في:
Miroslav Pejic
2024-04-16 14:33:17 +02:00
الأصل 1514f74267
التزام 298837abce
9 ملفات معدلة مع 173 إضافات و6 حذوفات

عرض الملف

@@ -41,7 +41,7 @@ dependencies: {
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.4.18
* @version 1.4.19
*
*/
@@ -73,6 +73,9 @@ const { CaptureConsole } = require('@sentry/integrations');
const restrictAccessByIP = require('./middleware/IpWhitelist.js');
const packageJson = require('../../package.json');
// Email alerts and notifications
const nodemailer = require('./lib/nodemailer');
// Slack API
const CryptoJS = require('crypto-js');
const qS = require('qs');
@@ -1015,6 +1018,11 @@ function startServer() {
return cb('isLobby');
}
// SCENARIO: Notify when the first user join room and is awaiting assistance...
if (room.getPeersCount() === 1) {
nodemailer.sendEmailAlert('join', { peer_name: peer_name, room_id: room.id }); // config.email.alert: true
}
cb(room.toJson());
});