chore: add incomplete type for rich messages#231
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughAdds a new alternative variant to homeserver.matrix.message.content.m.relates_to that supports rich replies via a nested Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Client as Matrix Client
participant SDK as Federation SDK (types)
participant Consumer as Downstream Consumer
Client->>SDK: Send homeserver.matrix.message (content)
alt Rich reply (new)
Note over SDK: content includes "m.relates_to": {"m.in_reply_to":{event_id}}
SDK-->>Consumer: Message typed with nested m.in_reply_to
Consumer->>Consumer: Inspect m.in_reply_to.event_id for reply handling
else Legacy rel_type (existing)
Note over SDK: content uses rel_type / event_id variants
SDK-->>Consumer: Message typed with rel_type-based relation
Consumer->>Consumer: Handle according to rel_type semantics
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #231 +/- ##
=======================================
Coverage 81.67% 81.67%
=======================================
Files 63 63
Lines 4682 4682
=======================================
Hits 3824 3824
Misses 858 858 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Jira integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
packages/federation-sdk/src/index.ts(1 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
packages/federation-sdk/src/index.ts (1)
packages/room/src/types/_common.ts (1)
EventID(8-8)
FDR-165
RocketChat/Rocket.Chat#37077
Summary by CodeRabbit
New Features
Bug Fixes
Chores