Skip to content

[BUG] Rich Presences don't do equality checks #269

@JustArion

Description

@JustArion

Describe the bug
Equality between presences are not considered

To Reproduce
Steps to reproduce the behavior:

  1. Create a rich presence (A)
  2. Create another rich presence with the same values as A. (B)
  3. Test for equality between Rich Presence A and Rich Presence B
  4. Equality returns false

Expected behavior
Equality is considered

Desktop (please complete the following information):

  • OS: Windows
  • Framework: .NET 9
  • Library Version: 1.2.1.24

Additional context

presence == _currentPresence // returns false
Newtonsoft.Json.JsonConvert.SerializeObject(presence) == Newtonsoft.Json.JsonConvert.SerializeObject(_currentPresence) // returns true

This is due to the default equality check being a reference basedcheck instead of a value based check.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or requestgood first issueGood for newcomers

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions