-
Notifications
You must be signed in to change notification settings - Fork 20
fix: thread message props #204
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
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughAdjusted thread message payload construction in MessageService.sendThreadMessage to always include is_falling_back in relates_to and conditionally include m.in_reply_to when latestThreadEventId is present. Removed is_falling_back_thread_reply flag. No changes to exported/public interfaces. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant MessageService
participant MatrixServer as Matrix Server
Client->>MessageService: sendThreadMessage(content, threadRootEventId, latestThreadEventId)
alt latestThreadEventId is present
Note over MessageService: Build relates_to = { rel_type: "m.thread", event_id: threadRootEventId, is_falling_back: true, "m.in_reply_to": { event_id: latestThreadEventId } }
else no latestThreadEventId
Note over MessageService: Build relates_to = { rel_type: "m.thread", event_id: threadRootEventId, is_falling_back: true }
end
MessageService->>MatrixServer: POST /send (content with relates_to)
MatrixServer-->>MessageService: ack (event_id)
MessageService-->>Client: result
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).Please share your feedback with us on this Discord post. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #204 +/- ##
=======================================
Coverage 81.01% 81.01%
=======================================
Files 63 63
Lines 4692 4692
=======================================
Hits 3801 3801
Misses 891 891 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary by CodeRabbit