mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
The previous fix only accounted for the local mute toggle. In a moderated channel (one with a talk power requirement) a client without sufficient talk power still has selfActive/VAD firing locally and no local concept of whether they're actually allowed to transmit, so the indicator stayed on regardless. The connector now computes has_talk_power per client from the book state (talk_power_granted || talk_power >= channel.needed_talk_power), mirroring tsclientlib's own internal intern_can_send_audio moderated-channel check, and threads it through gateway and frontend. The talking indicator (both the own-client injection into displayTalkers and the general per-client render in ChannelTree) now requires hasTalkPower too.