Repository navigation
fix: encoding of special characters in text attachments - #35863
Conversation
🦋 Changeset detectedLatest commit: 80cf64c The changes in this PR will be included in the next version bump. This PR includes changesets to release 36 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Kody Review CompleteGreat news! 🎉 Keep up the excellent work! 🚀 Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #35863 +/- ##
========================================
Coverage 64.44% 64.44%
========================================
Files 3138 3138
Lines 104909 104920 +11
Branches 19779 19781 +2
========================================
+ Hits 67606 67617 +11
+ Misses 34621 34617 -4
- Partials 2682 2686 +4
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
…nto SUP-725-api-txt-attachment-enc
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
Kody Review CompleteGreat news! 🎉 Keep up the excellent work! 🚀 Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
…nto SUP-725-api-txt-attachment-enc
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
Kody Review CompleteGreat news! 🎉 Keep up the excellent work! 🚀 Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled: |
19e3289 to
e2e5fc4
Compare
…nto SUP-725-api-txt-attachment-enc
…nto SUP-725-api-txt-attachment-enc

Proposed changes (including videos or screenshots)
This PR fixes an issue when posting messages via the API: special characters like
><and&symbol in code blocks inside text attachments are displayed as>,<, and&.Issue(s)
https://rocketchat.atlassian.net/browse/SUP-725
Steps to test or reproduce
API Endpoint: /api/v1/chat.postMessage
Example API Body:
{ "channel": "#COMM_EMOJI_TEST", "text": "```text\n TEST > TEST \n```", "attachments": [{ "text": "```text\n TEST > TEST\n```" }] }Result: The
>symbol becomes>in the attachment text but not in the message body.Further comments
Pull Request Description:
This pull request addresses an issue in the Rocket.Chat repository related to the encoding of special characters in attachments. The changes are made in the
DefaultAttachment.tsxfile within theapps/meteor/client/components/message/content/attachmentsdirectory. The update introduces the use of the Markup component from the gazzodown library to handle markdown content in attachments. Additionally, it implements conditional rendering based on the presence of themdproperty to ensure proper encoding and display of special characters. The source branch for this fix isSUP-725-api-txt-attachment-enc, and it targets thedevelopbranch.