mirror of https://github.com/ppy/osu
Fix discord "view beatmap" button being shown when editing and hide identifiable information is set
This commit is contained in:
parent
ce41c000a1
commit
62837c7e53
|
@ -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[]
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue