From 5eaebcaee96a74dffbf1dcf186cfba355016fc20 Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Fri, 5 Nov 2021 21:00:03 +0100 Subject: [PATCH] [mirotalksfu] - fix peerAction... --- public/css/Room.css | 1 + public/js/RoomClient.js | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/css/Room.css b/public/css/Room.css index 675decef..ff558b87 100644 --- a/public/css/Room.css +++ b/public/css/Room.css @@ -202,6 +202,7 @@ body { --------------------------------------------------------------*/ .tab { overflow: hidden; + background-color: rgba(0, 0, 0, 0.4); } /* Style the buttons inside the tab */ diff --git a/public/js/RoomClient.js b/public/js/RoomClient.js index 3fc1ffcf..67e2eb1f 100644 --- a/public/js/RoomClient.js +++ b/public/js/RoomClient.js @@ -2183,6 +2183,9 @@ class RoomClient { peerAction(from_peer_name, id, action, emit = true, broadcast = false) { let peer_id = id; + const words = peer_id.split('___'); + peer_id = words[0]; + if (emit) { let data = { from_peer_name: this.peer_name, @@ -2193,10 +2196,6 @@ class RoomClient { if (!broadcast) { if (participantsCount === 1) return; - - const words = peer_id.split('___'); - peer_id = words[0]; - switch (action) { case 'eject': let peer = this.getId(peer_id);