Fixed voice screen failing to load if voice calls were disabled

This commit is contained in:
Mark Qvist 2025-11-10 00:01:34 +01:00
parent 2bc80d2936
commit 04a09623a9
2 changed files with 36 additions and 32 deletions

View file

@ -5841,6 +5841,8 @@ class SidebandApp(MDApp):
self.voice_screen.screen.ids.identity_hash.text = RNS.hexrep(dial_on_complete, delimit=False)
Clock.schedule_once(self.voice_screen.dial_action, 0.25)
if self.sideband.config["voice_enabled"] == True: self.request_microphone_permission()
def voice_action(self, sender=None, direction="left", dial_on_complete=None):
if self.voice_ready:
self.voice_open(direction=direction, dial_on_complete=dial_on_complete)