From 68a55e2623fa3adcf3f6ba64cab6647b4e84ab16 Mon Sep 17 00:00:00 2001 From: Oleh Polisan Date: Thu, 18 Apr 2024 16:32:54 +0300 Subject: [PATCH] Fixed icon when connected with muted status --- src/renderer/patches/tray.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/renderer/patches/tray.ts b/src/renderer/patches/tray.ts index a137ae2..3288d6a 100644 --- a/src/renderer/patches/tray.ts +++ b/src/renderer/patches/tray.ts @@ -49,7 +49,13 @@ onceReady.then(() => { FluxDispatcher.subscribe("RTC_CONNECTION_STATE", params => { if (params.state === "RTC_CONNECTED") { - VesktopNative.app.setTrayIcon("idle"); + if (deafActions.isSelfDeaf()) { + VesktopNative.app.setTrayIcon("deafened"); + } else if (muteActions.isSelfMute()) { + VesktopNative.app.setTrayIcon("muted"); + } else { + VesktopNative.app.setTrayIcon("idle"); + } } else if (params.state === "RTC_DISCONNECTED") { VesktopNative.app.setTrayIcon("main"); }