mirror of
https://github.com/Vencord/Vesktop.git
synced 2025-02-24 06:05:09 +00:00
fix: default tray when stream stopped
This commit is contained in:
parent
842f9b7058
commit
68daf93224
1 changed files with 2 additions and 2 deletions
|
@ -125,10 +125,10 @@ onceReady.then(() => {
|
|||
});
|
||||
|
||||
FluxDispatcher.subscribe("RTC_CONNECTION_STATE", params => {
|
||||
if (params.state === "RTC_CONNECTED") {
|
||||
if (params.state === "RTC_CONNECTED" && params.context === "default") {
|
||||
isInCall = true;
|
||||
setCurrentTrayIcon();
|
||||
} else if (params.state === "RTC_DISCONNECTED") {
|
||||
} else if (params.state === "RTC_DISCONNECTED" && params.context === "default") {
|
||||
VesktopNative.tray.setIcon("icon");
|
||||
isInCall = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue