Fixed icon when connected with muted status
This commit is contained in:
parent
eec5eb1df1
commit
68a55e2623
1 changed files with 7 additions and 1 deletions
|
@ -49,7 +49,13 @@ onceReady.then(() => {
|
|||
|
||||
FluxDispatcher.subscribe("RTC_CONNECTION_STATE", params => {
|
||||
if (params.state === "RTC_CONNECTED") {
|
||||
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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue