[mirotalksfu] - on eject ban user, update dep.

هذا الالتزام موجود في:
Miroslav Pejic
2024-01-29 18:06:07 +01:00
الأصل f610949cee
التزام 9b23ae5d00
5 ملفات معدلة مع 85 إضافات و8 حذوفات

عرض الملف

@@ -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.3.57
* @version 1.3.58
*
*/
@@ -3091,6 +3091,14 @@ function wbDrawing(status) {
// HANDLE PARTICIPANTS
// ####################################################
async function getRemotePeerInfo(peer_id) {
const peers = await getRoomPeers();
for (let peer of Array.from(peers.keys()).filter((id) => id === peer_id)) {
return peers.get(peer).peer_info;
}
return false;
}
async function getRoomPeers() {
let room_info = await rc.getRoomInfo();
return new Map(JSON.parse(room_info.peers));