Skip to content

FIX: correctly update last message bus id for threads and channels #33846

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

Merged
merged 2 commits into from
Jul 25, 2025

Conversation

jjaffeux
Copy link
Contributor

Given we cache the channels and threads we also store the last message bus id returned by the serializer initially. We need to ensure we update this id when we receive a message otherwise if you leave a channel and come back to it we will load the state from the id stored in the cache initially.

threads were doing it but we were not using the correct parameter.

This commit will fix multiple bugs, as for example notices that would replay each time you visit channel. We also took this opportunity to clear a notice once you leave a channel even if you didn't click dismiss.

Given we cache the channels and threads we also store the last message bus id returned by the serializer initially. We need to ensure we update this id when we receive a message otherwise if you leave a channel and come back to it we will load the state from the id stored in the cache initially.

threads were doing it but we were not using the correct parameter.

This commit will fix multiple bugs, as for example notices that would replay each time you visit channel. We also took this opportunity to clear a notice once you leave a channel even if you didn't click dismiss.
@github-actions github-actions bot added the chat PRs which include a change to Chat plugin label Jul 24, 2025
Copy link
Contributor

@martin-brennan martin-brennan left a comment

Choose a reason for hiding this comment

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

Very nice 👌

@jjaffeux jjaffeux merged commit 2d4930f into main Jul 25, 2025
15 of 16 checks passed
@jjaffeux jjaffeux deleted the last-message-bus-id branch July 25, 2025 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chat PRs which include a change to Chat plugin
Development

Successfully merging this pull request may close these issues.

2 participants