Skip to content

Send into a thread - #23

Merged
TroyHernandez merged 3 commits into
mainfrom
thread-send
Aug 20, 2026
Merged

TroyHernandez merged 3 commits into
mainfrom
thread-send

Conversation

@TroyHernandez

Copy link
Copy Markdown
Contributor

mx_send_text() gains a thread parameter. Given a root event id it attaches m.relates_to with rel_type m.thread, plus the reply fallback the spec asks for (is_falling_back and an m.in_reply_to pointing at the root) so a client that does not implement threads renders the message as a reply to the root rather than as loose chatter in the room.

The inbound half already exists — mx_extract_text_events() has carried relates_to since 0.2.0.4 — so this closes the round trip. First of three PRs wiring threaded replies up the stack (mx.client → chat.api → corteza), so a reply to an archived conversation's thread can be routed back into that thread.

An empty or NULL thread id means no relation at all, rather than one pointing nowhere, and a thread composes with markdown and mentions rather than replacing them; both are pinned by tests.

Note: the local media-extractor branch also carries a 0.2.0.5 bump, so whichever merges second rebases its bump.

mx_send_text() gains a thread parameter: given a root event id it
attaches m.relates_to with rel_type m.thread, alongside the reply
fallback (is_falling_back plus m.in_reply_to pointing at the root) so
a client that does not implement threads renders the message as a
reply rather than as loose chatter in the room.

The inbound half already existed -- mx_extract_text_events() has
carried relates_to since 0.2.0.4 -- so this closes the round trip.
@TroyHernandez
TroyHernandez merged commit e918385 into main Aug 20, 2026
2 checks passed
@TroyHernandez
TroyHernandez deleted the thread-send branch August 20, 2026 15:45
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