Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix discord RPC errors in multiplayer #27728

Merged
merged 4 commits into from Mar 26, 2024

Conversation

bdach
Copy link
Collaborator

@bdach bdach commented Mar 25, 2024

Regressed in #27443

Reproduction steps:

  1. Go to multiplayer

  2. Create a room

  3. Play a map to completion

  4. Wait for "secrets cannot currently be sent with buttons" error messages:

    osu_2024-03-25_15-48-02

I'm not sure how this got past testing, it's not even intermittent. Happens every time without fail to me. Multiple times per map.

The fix is to clear the buttons since they're the less important ones.

Includes some other incidental minor refactorings and rewordings. See commit messages for rationale of each of them.

The "code" is a number, so it looked weird when put in the middle
without any nearby punctuation. Example:

	An error occurred with Discord RPC Client: 5005 secrets cannot currently be sent with buttons
The method doesn't actually update anything by itself, and I want to
free up the `updatePresence()` name for the actual update.
I'm about to make them interdependent (and it's discord's fault),
so it doesn't really make sense to make them separate at this point
I don't think. And it felt weird anyway.
Reproduction steps:

1. Go to multiplayer
2. Create a room
3. Play a map to completion
4. Wait for "secrets cannot currently be sent with buttons" error
   messages

The fix is to clear the buttons since they're the less important ones.
@smoogipoo smoogipoo merged commit 99a5eb9 into ppy:master Mar 26, 2024
13 of 17 checks passed
@bdach bdach deleted the discord-cannot-send-secrets-with-buttons branch March 26, 2024 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants