fix(voice): clamp transmit when speakers muted
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user