Added voice call notifications

This commit is contained in:
Mark Qvist 2025-11-06 17:07:00 +01:00
parent cf0d64a746
commit 6b09c6b262
3 changed files with 75 additions and 58 deletions

View file

@ -1274,8 +1274,11 @@ class SidebandApp(MDApp):
data = extras.getString("intent_action", "undefined")
if data.startswith("conversation."):
conv_hexhash = bytes.fromhex(data.replace("conversation.", ""))
def cb(dt):
self.open_conversation(conv_hexhash)
def cb(dt): self.open_conversation(conv_hexhash)
Clock.schedule_once(cb, 0.2)
elif data.startswith("incoming_call"):
def cb(dt): self.voice_action()
Clock.schedule_once(cb, 0.2)
except Exception as e: