Tell apart matrix.to user links from formatted message mentions#39
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📜 Recent review details🔇 Additional comments (1)
📝 WalkthroughSummary by CodeRabbit
WalkthroughAdds an ChangesAuto-link distinction for user mentions
🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
2018e3a to
4c589f3
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@messageformat/src/commonMain/kotlin/com/beeper/android/messageformat/MatrixBodyStyledFormatter.kt`:
- Around line 424-432: formatUserMention currently returns a LinkAnnotation.Url
without an onClick, bypassing the spoiler-intercept and click handling in
formatWebLink; update formatUserMention to attach the same onClick behavior as
formatWebLink (or delegate to formatWebLink) so that auto-linked mentions call
interceptLinkClicks(context) and then handleWebLinkClick(url) before navigation,
ensuring you still pass urlStyle when constructing the LinkAnnotation.Url.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 72412c91-f667-4271-ad53-d8c14af58336
📒 Files selected for processing (6)
messageformat/src/commonMain/kotlin/com/beeper/android/messageformat/MatrixBodyAnnotations.ktmessageformat/src/commonMain/kotlin/com/beeper/android/messageformat/MatrixBodyStyledFormatter.ktmessageformat/src/commonMain/kotlin/com/beeper/android/messageformat/MatrixHtmlParser.ktmessageformat/src/commonMain/kotlin/com/beeper/android/messageformat/MatrixPatterns.ktplayground/src/jvmMain/kotlin/com/beeper/android/messageformat/desktop/ExampleMessage.ktplayground/src/jvmMain/kotlin/com/beeper/android/messageformat/desktop/MessageRenderPlaygroundMain.kt
📜 Review details
🔇 Additional comments (5)
messageformat/src/commonMain/kotlin/com/beeper/android/messageformat/MatrixBodyAnnotations.kt (1)
48-48: LGTM!messageformat/src/commonMain/kotlin/com/beeper/android/messageformat/MatrixPatterns.kt (1)
20-20: LGTM!Also applies to: 40-40
messageformat/src/commonMain/kotlin/com/beeper/android/messageformat/MatrixHtmlParser.kt (1)
266-266: LGTM!Also applies to: 457-457
playground/src/jvmMain/kotlin/com/beeper/android/messageformat/desktop/MessageRenderPlaygroundMain.kt (1)
188-191: LGTM!playground/src/jvmMain/kotlin/com/beeper/android/messageformat/desktop/ExampleMessage.kt (1)
32-33: LGTM!
No description provided.