-
-
Notifications
You must be signed in to change notification settings - Fork 257
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
Add basic m.thread
support
#1349
Conversation
Preview: https://1349--pr-cinny.netlify.app |
src/app/organisms/room/RoomInput.tsx
Outdated
if (replyDraft.relatesTo?.rel_type === "m.thread") { | ||
content['m.relates_to'].event_id = replyDraft.relatesTo.event_id; | ||
content['m.relates_to'].rel_type = "m.thread"; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we do not support thread in cinny we should also add "is_falling_back": true
as we are replying to a message which is part of thread compare to sending a message in thread with client that support them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's the other way around. If we sent "is_falling_back": true
, the message would be interpreted as posted to the thread directly with m.in_reply_to
being set only for fallback purposes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This time I explicitly set is_falling_back
to false
. I think it's saner considering we're making a normal reply from Cinny's perspective.
Is any help needed here? I can try to contribute if you think I could help :) |
Can the reviewers with write access please look at this? This has been open for quite some time and threads are a noticeable missing feature |
I added threaded reply indicators inspired by element-x. Should resolve #1871. |
@williamkray looks like I broke it again. Thanks for the report. |
looks good after the fix! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, it looks great to me.
Could you please mark the PR as ready for review.
I converted rem units to equivalent |
Description
Adds basic
m.thread
support as described in MSC3440.Support in this case means that replying to a threaded message will place the reply in the thread in clients that support them.
Partially fixes #257
Type of change
Checklist: