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

Multiple equal reactions from user are displayed multiple times #228

Closed
Kladki opened this issue Mar 24, 2024 · 0 comments · Fixed by #239
Closed

Multiple equal reactions from user are displayed multiple times #228

Kladki opened this issue Mar 24, 2024 · 0 comments · Fixed by #239
Milestone

Comments

@Kladki
Copy link
Contributor

Kladki commented Mar 24, 2024

Bug Description

When multiple m.reaction events are sent from a user with the same key and rel_type from the same user, it causes their reactions to add up rather than just being displayed once. These are all from me:
image

Steps to Reproduce

  1. Send a message
  2. Get the event id
  3. Use element devtools to send this event multiple times of type m.reaction:
"m.relates_to": {
  "event_id": "${event_id}",
  "key": "👍",
  "rel_type": "m.annotation"
}
  1. See issue

Expected Behavior

Only one reaction of a certain emoji should be displayed for a single user.

Multiple identical annotations (i.e., with the same event type and annotation key) from the same user (i.e., events with the same sender) should be treated as a single annotation.

https://spec.matrix.org/v1.10/client-server-api/#annotations-client-behaviour

App Version

0.0.8

Additional Context

Multiple reactions in the real world can be caused by buggy clients, multiple clients reacting at the same time, lag, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants