[mirotalksfu] - add raise hand filter
هذا الالتزام موجود في:
@@ -201,6 +201,7 @@ class RoomClient {
|
||||
this.isChatPinned = false;
|
||||
this.isChatMaximized = false;
|
||||
this.isToggleUnreadMsg = false;
|
||||
this.isToggleRaiseHand = false;
|
||||
this.pinnedVideoPlayerId = null;
|
||||
this.camVideo = false;
|
||||
this.camera = 'user';
|
||||
@@ -5472,6 +5473,24 @@ class RoomClient {
|
||||
}
|
||||
}
|
||||
|
||||
// ####################################################
|
||||
// FILTER PEER WITH RAISE HAND
|
||||
// ####################################################
|
||||
|
||||
toggleRaiseHands() {
|
||||
const participantsList = this.getId('participantsList');
|
||||
const participantsListItems = participantsList.getElementsByTagName('li');
|
||||
|
||||
for (let i = 0; i < participantsListItems.length; i++) {
|
||||
const li = participantsListItems[i];
|
||||
const hasPulsateClass = li.querySelector('i.pulsate') !== null;
|
||||
const shouldDisplay = (hasPulsateClass && !this.isToggleRaiseHand) || this.isToggleRaiseHand;
|
||||
li.style.display = shouldDisplay ? '' : 'none';
|
||||
}
|
||||
this.isToggleRaiseHand = !this.isToggleRaiseHand;
|
||||
setColor(participantsRaiseHandBtn, this.isToggleRaiseHand ? 'lime' : 'white');
|
||||
}
|
||||
|
||||
// ####################################################
|
||||
// FILTER PEER WITH UNREAD MESSAGES
|
||||
// ####################################################
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم