-
Notifications
You must be signed in to change notification settings - Fork 13k
regression(federation): restore quoted messages reception #37165
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
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
|
17c7749 to
db0537a
Compare
WalkthroughRemoves dependence on Changes
Sequence Diagram(s)sequenceDiagram
actor Matrix
participant Handler as FederationMessageHandler
participant Meteor as MeteorService
Matrix->>Handler: incoming message event (may include quoteMessageEventId)
alt quoteMessageEventId present
Handler->>Handler: resolve originalMessage
note right of Handler #CCF2FF: edited quote adds rawMessage,\nhomeServerDomain, senderExternalId
Handler->>Meteor: getMessageURLToReplyTo(room.t, room._id, originalMessage._id)
Meteor-->>Handler: messageURL
Handler->>Handler: build quoted payload (incl. new fields if edited)
else no quoteMessageEventId
Handler->>Handler: normal processing
end
Handler-->>Matrix: persist/forward processed message
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
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 |
6fc8f40 to
928973e
Compare
89ebe54 to
94445d8
Compare
db0537a to
1a1259c
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release-7.11.0 #37165 +/- ##
==================================================
- Coverage 67.46% 67.41% -0.06%
==================================================
Files 3329 3329
Lines 113381 113381
Branches 20579 20568 -11
==================================================
- Hits 76490 76432 -58
- Misses 34291 34352 +61
+ Partials 2600 2597 -3
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
1a1259c to
62f76cd
Compare
62f76cd to
82a86c5
Compare
Proposed changes (including videos or screenshots)
As per FDR-182, quoted messages were not working for direct messages. The issue occurred because DMs have neither a
namenor anfname, resulting in a null parameter being passed to thegetMessageURLToReplyTo. Upon further analysis, there’s no need to passroomNameto the function, since only theridis used to generate the quote messages links. Based on that, instead of adding a specific handler to check for DMs and pass an empty room name, I decided to remove theroomNameparameter from thegetMessageURLToReplyTofunction altogether.Issue(s)
Steps to test or reproduce
Quoted messages should display correctly to the recipient, maintaining the original message content and formatting.
Further comments
Summary by CodeRabbit
Bug Fixes
Improvements