Skip to content

Commit

Permalink
Fix crash when entering multiplayer on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
smoogipoo committed Apr 13, 2024
1 parent 3793a55 commit c7f3a59
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 c7f3a59

Please sign in to comment.