mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-17 13:53:52 +02:00
Fix Discord RPC 2
This commit is contained in:
@@ -4274,7 +4274,7 @@ speechSynthesis.getVoices();
|
||||
this.lastLocationReset();
|
||||
this.clearNowPlaying();
|
||||
this.updateVRLastLocation();
|
||||
this.setDiscordActive(isGameRunning);
|
||||
this.nextDiscordUpdate = 0;
|
||||
}
|
||||
if (isSteamVRRunning !== this.isSteamVRRunning) {
|
||||
this.isSteamVRRunning = isSteamVRRunning;
|
||||
@@ -7881,7 +7881,6 @@ speechSynthesis.getVoices();
|
||||
configRepository.setBool('discordJoinButton', this.discordJoinButton);
|
||||
configRepository.setBool('discordHideInvite', this.discordHideInvite);
|
||||
configRepository.setBool('discordHideImage', this.discordHideImage);
|
||||
this.setDiscordActive(this.isGameRunning);
|
||||
this.lastLocation$.tag = '';
|
||||
this.updateDiscord();
|
||||
};
|
||||
@@ -10003,6 +10002,7 @@ speechSynthesis.getVoices();
|
||||
!this.isGameRunning ||
|
||||
(!currentLocation && !this.lastLocation$.tag)
|
||||
) {
|
||||
Discord.SetInactive();
|
||||
return;
|
||||
}
|
||||
var L = this.lastLocation$;
|
||||
@@ -10172,15 +10172,6 @@ speechSynthesis.getVoices();
|
||||
}
|
||||
};
|
||||
|
||||
$app.methods.setDiscordActive = function (isGameRunning) {
|
||||
if (this.discordActive && isGameRunning) {
|
||||
Discord.SetActive(true);
|
||||
} else {
|
||||
Discord.SetText('', '');
|
||||
Discord.SetActive(false);
|
||||
}
|
||||
};
|
||||
|
||||
$app.methods.lookupUser = async function (ref) {
|
||||
if (ref.userId) {
|
||||
this.showUserDialog(ref.userId);
|
||||
|
||||
Reference in New Issue
Block a user