fix(voice): clamp transmit when speakers muted

This commit is contained in:
Edison Jwa
2026-05-20 16:37:48 +09:00
parent 9a2c882ab0
commit 171baf6e41
2 changed files with 33 additions and 10 deletions
+8 -1
View File
@@ -718,8 +718,14 @@ class _BetaHomeState extends State<_BetaHome> {
final next = !_outputMuted;
try {
await rust.setOutputMuted(muted: next);
await rust.setHardMute(
muted: next || _inputMuted || _hardMuteByPermission,
);
if (!mounted) return;
setState(() => _outputMuted = next);
setState(() {
_outputMuted = next;
_hardMute = next || _inputMuted || _hardMuteByPermission;
});
} catch (e) {
if (!mounted) return;
setState(() => _error = e.toString());
@@ -887,6 +893,7 @@ class _BetaHomeState extends State<_BetaHome> {
if (!mounted) return;
setState(() {
_inputMuted = next;
_hardMute = next;
_hardMuteByPermission = false;
});
} catch (e) {