Hide social interactions while in Do Not Disturb

This commit is contained in:
jvyden 2024-02-27 16:23:36 -05:00
parent 8934cf33f0
commit e053c08f6b
No known key found for this signature in database
GPG Key ID: 18BCF2BE0262B278
1 changed files with 3 additions and 1 deletions

View File

@ -95,8 +95,10 @@ private void updateStatus()
if (activity.Value != null)
{
bool hideIdentifiableInformation = privacyMode.Value == DiscordRichPresenceMode.Limited;
bool hideInteractions = status.Value == UserStatus.DoNotDisturb && activity.Value is UserActivity.InLobby;
presence.State = truncate(activity.Value.GetStatus(hideIdentifiableInformation));
presence.Details = truncate(activity.Value.GetDetails(hideIdentifiableInformation) ?? string.Empty);
presence.Details = truncate(activity.Value.GetDetails(hideIdentifiableInformation || hideInteractions) ?? string.Empty);
if (getBeatmapID(activity.Value) is int beatmapId && beatmapId > 0)
{