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

perf: optimistic updates for reactions #1377

Merged

Conversation

nikkothari22
Copy link
Member

On reacting to a message, raven will first update the cache optimistically, then wait for the response from the server and if the response is Ok, it will update the message in the cache. If the response is an error, it will rollback.

Post this, when the websocket event comes in for the reaction, the message will be updated anyway, so if there are multiple people reacting, it will reflect the correct value

@nikkothari22 nikkothari22 linked an issue Feb 20, 2025 that may be closed by this pull request
@nikkothari22 nikkothari22 self-assigned this Feb 20, 2025
@nikkothari22 nikkothari22 merged commit dff04e2 into develop Feb 20, 2025
1 check passed
@nikkothari22 nikkothari22 deleted the 1368-update-message-reactions-when-response-is-received branch February 20, 2025 19:31
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 this pull request may close these issues.

Update message reactions when response is received
1 participant