From b0b9860f68b0a151841d0c145a11ea39c11fa66a Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Wed, 3 Jan 2024 03:46:28 +0100 Subject: Rudimentary DBus toggle-to-talk support (#1507) Adds a ToggleToTalk method to the DBus interface to unmute/mute the microphone in the active service if the recipe supports it. We will need to add support for this feature in recipes. --- src/models/Service.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/models') diff --git a/src/models/Service.ts b/src/models/Service.ts index b1f0bc271..da9fa43dd 100644 --- a/src/models/Service.ts +++ b/src/models/Service.ts @@ -641,4 +641,8 @@ export default class Service { this.unreadDirectMessageCount = 0; this.unreadIndirectMessageCount = 0; } + + toggleToTalk(): void { + this.webview?.send('toggle-to-talk'); + } } -- cgit v1.2.3-70-g09d2