sak1b

mute unmute event

Jun 26th, 2021
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. / mute umute event
  2.  
  3. // if (
  4. // message._plainMessage.plugindata.data.audiobridge ===
  5. // "event" &&
  6. // message._plainMessage.plugindata.data.participants
  7. // ) {
  8. // console.log("in event block (mute/unmute)");
  9. // const actor =
  10. // message._plainMessage.plugindata.data.participants[0];
  11.  
  12. // for (let i = 0; i < userList.length; i++) {
  13. // if (userList[i].id === actor.id) {
  14. // userList[i].muted = actor.muted;
  15. // }
  16. // }
  17.  
  18. // // setparticipantList(participantList => {
  19. // // let userList = participantList;
  20. // // for (let participant of userList) {
  21. // // if (participant.id === actor.id) {
  22. // // participant.muted = actor.muted;
  23. // // }
  24. // // }
  25. // // return userList;
  26.  
  27. // // });
  28. // setparticipantList(userList);
  29.  
  30. // }
Advertisement
Add Comment
Please, Sign In to add comment