From 009ba81a5a9768aaa9316c3b6c21c3af7af062f9 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Wed, 26 Nov 2025 00:47:47 +1300 Subject: [PATCH] use lxst api to get mute state --- meshchat.py | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/meshchat.py b/meshchat.py index df56948..c0d3459 100644 --- a/meshchat.py +++ b/meshchat.py @@ -410,16 +410,6 @@ class ReticulumMeshChat: remote_identity_hash = remote_identity.hash.hex() remote_identity_name = self.get_name_for_identity_hash(remote_identity_hash) - # check if receive is muted - is_receive_muted = False - if self.telephone.receive_mixer is not None: - is_receive_muted = self.telephone.receive_mixer.muted - - # check if transmit is muted - is_transmit_muted = False - if self.telephone.transmit_mixer is not None: - is_transmit_muted = self.telephone.transmit_mixer.muted - active_call = { "hash": telephone_active_call.hash.hex(), "status": self.telephone.call_status, @@ -428,8 +418,8 @@ class ReticulumMeshChat: "remote_identity_hash": remote_identity_hash, "remote_identity_name": remote_identity_name, "audio_profile_id": self.telephone.active_profile, - "is_receive_muted": is_receive_muted, - "is_transmit_muted": is_transmit_muted, + "is_receive_muted": self.telephone.receive_muted, + "is_transmit_muted": self.telephone.transmit_muted, "tx_packets": telephone_active_call.tx, "rx_packets": telephone_active_call.rx, "tx_bytes": telephone_active_call.txbytes,