Fix Discord RPC 1

This commit is contained in:
Natsumi
2022-08-25 21:55:11 +12:00
parent 75dd7d1289
commit 20f10d8b71
+2 -2
View File
@@ -4268,13 +4268,13 @@ speechSynthesis.getVoices();
); );
API.currentUser.$online_for = ''; API.currentUser.$online_for = '';
API.currentUser.$offline_for = Date.now(); API.currentUser.$offline_for = Date.now();
this.setDiscordActive(isGameRunning);
this.autoVRChatCacheManagement(); this.autoVRChatCacheManagement();
this.ipcTimeout = 0; this.ipcTimeout = 0;
} }
this.lastLocationReset(); this.lastLocationReset();
this.clearNowPlaying(); this.clearNowPlaying();
this.updateVRLastLocation(); this.updateVRLastLocation();
this.setDiscordActive(isGameRunning);
} }
if (isSteamVRRunning !== this.isSteamVRRunning) { if (isSteamVRRunning !== this.isSteamVRRunning) {
this.isSteamVRRunning = isSteamVRRunning; this.isSteamVRRunning = isSteamVRRunning;
@@ -13240,7 +13240,7 @@ speechSynthesis.getVoices();
if (!D.visible) { if (!D.visible) {
return; return;
} }
var L = API.parseLocation(D.ref.$location.tag); var L = API.parseLocation(D.$location.tag);
if (L.tag !== this.lastLocation.location && updateInstanceOccupants) { if (L.tag !== this.lastLocation.location && updateInstanceOccupants) {
this.userDialog.instance.occupants = 0; this.userDialog.instance.occupants = 0;
if (this.isRealInstance(L.tag)) { if (this.isRealInstance(L.tag)) {