Fix discord "view beatmap" button being shown when editing and hide identifiable information is set

This commit is contained in:
Joseph Madamba 2024-11-09 10:27:23 -08:00
parent ce41c000a1
commit 62837c7e53
No known key found for this signature in database
GPG Key ID: 8B746C7BDDF0BD76
1 changed files with 3 additions and 1 deletions

View File

@ -167,7 +167,9 @@ private void updatePresence(bool hideIdentifiableInformation)
presence.State = clampLength(activity.Value.GetStatus(hideIdentifiableInformation));
presence.Details = clampLength(activity.Value.GetDetails(hideIdentifiableInformation) ?? string.Empty);
if (getBeatmapID(activity.Value) is int beatmapId && beatmapId > 0)
if (getBeatmapID(activity.Value) is int beatmapId
&& beatmapId > 0
&& !(activity.Value is UserActivity.EditingBeatmap && hideIdentifiableInformation))
{
presence.Buttons = new[]
{