🐛(frontend) optimize mute-all to skip participants without mic tracks
Improve mute-all functionality by filtering out participants who are already muted or lack microphone publishing permissions, and ignore cases where microphone tracks are unavailable. Prevents unnecessary mute operations on participants who cannot be muted, prevent API errors.
This commit is contained in:
committed by
aleb_the_flash
parent
00b58288cf
commit
7d1f15ef91
@@ -21,7 +21,7 @@ export const useMuteParticipant = () => {
|
||||
)?.trackSid
|
||||
|
||||
if (!trackSid) {
|
||||
throw new Error('Missing audio track')
|
||||
return
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user