Repository navigation
fix(channels): a message reported in another thread takes its summary along - #532
Merged
Merged
Conversation
… along A stored message that a channel reports again under a different thread was already moved to that thread. The two conversations' previews were not: the one it left kept showing it as the last message, and one made only of moved messages had no preview at all. Both are now recomputed on a move.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
When a channel reports a stored message again under a different thread, the message already moves to that thread. The conversation summaries did not follow:
Both conversations' last-message time and preview are now recomputed when a message moves.
This matters for a channel that starts dividing one group into several threads: a re-import then sorts the stored messages into them.
Testing
Integration test added in
channel-gateway.integration.test.ts(22 pass locally with a database). Typecheck and lint clean.