1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-05 03:13:22 +08:00

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

View File

@ -167,7 +167,9 @@ namespace osu.Desktop
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[]
{