[mirotalksfu] - add limit rooms per user option, update dep

هذا الالتزام موجود في:
Miroslav Pejic
2024-06-10 08:19:03 +02:00
الأصل e728853938
التزام 0d81177a7f
5 ملفات معدلة مع 101 إضافات و20 حذوفات

عرض الملف

@@ -11,7 +11,7 @@ if (location.href.substr(0, 5) !== 'https') location.href = 'https' + location.h
* @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.47
* @version 1.4.48
*
*/

عرض الملف

@@ -9,7 +9,7 @@
* @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.47
* @version 1.4.48
*
*/
@@ -379,6 +379,12 @@ class RoomClient {
.request('join', data)
.then(async (room) => {
console.log('##### JOIN ROOM #####', room);
if (room === 'notAllowed') {
console.log(
'00-WARNING ----> Room is Unauthorized for current user, please provide a valid room name for this user',
);
return this.userRoomNotAllowed();
}
if (room === 'unauthorized') {
console.log(
'00-WARNING ----> Room is Unauthorized for current user, please provide a valid username and password',
@@ -5572,6 +5578,23 @@ class RoomClient {
// HANDLE ROOM ACTION
// ####################################################
userRoomNotAllowed() {
this.sound('alert');
Swal.fire({
allowOutsideClick: false,
allowEscapeKey: false,
background: swalBackground,
imageUrl: image.forbidden,
title: 'Oops, Room not allowed',
text: 'This room is not allowed for this user',
confirmButtonText: `OK`,
showClass: { popup: 'animate__animated animate__fadeInDown' },
hideClass: { popup: 'animate__animated animate__fadeOutUp' },
}).then(() => {
openURL(`/`); // Select the new allowed room name for this user and login to join
});
}
userUnauthorized() {
this.sound('alert');
Swal.fire({