Skip to content

Commit

Permalink
Merge pull request #27839 from smoogipoo/fix-macos-crash
Browse files Browse the repository at this point in the history
Fix crash when entering multiplayer on macOS
  • Loading branch information
peppy authored Apr 13, 2024
2 parents 3793a55 + c7f3a59 commit b7b3401
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion osu.Desktop/DiscordRichPresence.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,9 @@ private void updatePresence(bool hideIdentifiableInformation)
Password = room.Settings.Password,
};

presence.Secrets.JoinSecret = JsonConvert.SerializeObject(roomSecret);
if (client.HasRegisteredUriScheme)
presence.Secrets.JoinSecret = JsonConvert.SerializeObject(roomSecret);

// discord cannot handle both secrets and buttons at the same time, so we need to choose something.
// the multiplayer room seems more important.
presence.Buttons = null;
Expand Down

0 comments on commit b7b3401

Please sign in to comment.