1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:27:29 +08:00

Merge pull request #27354 from jvyden/discord-dnd-fix

Resolve issues with Discord RPC while on Do Not Disturb
This commit is contained in:
Bartłomiej Dach 2024-02-28 11:37:10 +01:00 committed by GitHub
commit 5ccd53e71b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -92,9 +92,10 @@ namespace osu.Desktop
return;
}
if (status.Value == UserStatus.Online && activity.Value != null)
if (activity.Value != null)
{
bool hideIdentifiableInformation = privacyMode.Value == DiscordRichPresenceMode.Limited;
bool hideIdentifiableInformation = privacyMode.Value == DiscordRichPresenceMode.Limited || status.Value == UserStatus.DoNotDisturb;
presence.State = truncate(activity.Value.GetStatus(hideIdentifiableInformation));
presence.Details = truncate(activity.Value.GetDetails(hideIdentifiableInformation) ?? string.Empty);