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/lib/dbus/Ferdium.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/lib/dbus') diff --git a/src/lib/dbus/Ferdium.ts b/src/lib/dbus/Ferdium.ts index b2a9105f4..853be68e1 100644 --- a/src/lib/dbus/Ferdium.ts +++ b/src/lib/dbus/Ferdium.ts @@ -31,6 +31,10 @@ export default class Ferdium extends dbus.interface.Interface { this.dbus.trayIcon._toggleWindow(); } + ToggleToTalk(): void { + this.dbus.trayIcon.mainWindow?.webContents.send('toggle-to-talk'); + } + emitUnreadChanged(): void { Ferdium.emitPropertiesChanged( this, @@ -66,6 +70,10 @@ Ferdium.configureMembers({ inSignature: '', outSignature: '', }, + ToggleToTalk: { + inSignature: '', + outSignature: '', + }, }, properties: { Muted: { -- cgit v1.2.3-70-g09d2