Skip to content

fix(channels): a message reported in another thread takes its summary along - #532

Merged
setkyar merged 1 commit into
mainfrom
feat/imported-message-follows-its-thread
Dec 3, 2026
Merged

setkyar merged 1 commit into
mainfrom
feat/imported-message-follows-its-thread

Conversation

@setkyar

@setkyar setkyar commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

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:

  • the conversation it left kept showing it as the last message
  • a conversation made only of moved messages had no preview

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.

… 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.
@setkyar
setkyar merged commit 7d7953f into main Dec 3, 2026
9 checks passed
@setkyar
setkyar deleted the feat/imported-message-follows-its-thread branch December 3, 2026 12:19
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.

1 participant