Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- / mute umute event
- // if (
- // message._plainMessage.plugindata.data.audiobridge ===
- // "event" &&
- // message._plainMessage.plugindata.data.participants
- // ) {
- // console.log("in event block (mute/unmute)");
- // const actor =
- // message._plainMessage.plugindata.data.participants[0];
- // for (let i = 0; i < userList.length; i++) {
- // if (userList[i].id === actor.id) {
- // userList[i].muted = actor.muted;
- // }
- // }
- // // setparticipantList(participantList => {
- // // let userList = participantList;
- // // for (let participant of userList) {
- // // if (participant.id === actor.id) {
- // // participant.muted = actor.muted;
- // // }
- // // }
- // // return userList;
- // // });
- // setparticipantList(userList);
- // }
Advertisement
Add Comment
Please, Sign In to add comment