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

Add read-all-notifications ws type to avoid errors #780

Merged
merged 3 commits into from
May 21, 2024

Conversation

Ravendwyr
Copy link
Contributor

Pull Request Etiquette

Checklist

  • Tests have been added in relevant areas
  • Corresponding changes made to the documentation (README.adoc)

Type of change

"Bug fix"

Description

This PR adds support for a read-all-notifications websocket message that is sent/received when clicking the envelope icon in the notifications menu to mark any unread notifications as read. Previously this would cause an exception for an unhandled message type. This change at the very least suppresses this.

@Rakambda
Copy link
Member

Thanks.
Is it possible to add a test? You can basically copy paste

and adapt set the new message type in the payload.

@Ravendwyr
Copy link
Contributor Author

Test added. Sorry about that, I missed that! I think I did it right?

Copy link
Member

@Rakambda Rakambda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost ;)

…s/TwitchPubSubWebSocketClientMessageTest.java
@Rakambda Rakambda merged commit 467ef35 into RakambdaOrg:develop May 21, 2024
6 of 9 checks passed
@Rakambda Rakambda changed the title Attempt to add new/missing websocket message Add read-all-notifications ws type to avoid errors May 21, 2024
@Rakambda Rakambda added type: 🐛 bug Something isn't working app: ⛏️ miner labels May 21, 2024
Rakambda added a commit that referenced this pull request May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants