-
Notifications
You must be signed in to change notification settings - Fork 100
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
Always send formatted content #2141
Conversation
Generated by 🚫 Danger Swift against 03d6086 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #2141 +/- ##
===========================================
- Coverage 72.00% 71.91% -0.09%
===========================================
Files 511 511
Lines 34722 34721 -1
Branches 16673 16673
===========================================
- Hits 25001 24971 -30
- Misses 9105 9137 +32
+ Partials 616 613 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
I don't think its that simple. We always send the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An example, this is from develop
:
"content": {
"body": "This is **bold**.",
"format": "org.matrix.custom.html",
"formatted_body": "<p>This is <strong>bold</strong>.</p>\n",
"m.mentions": {},
"msgtype": "m.text"
},
And this is with the changes:
"content": {
"body": "This is **bold**.",
"format": "org.matrix.custom.html",
"formatted_body": "This is **bold**.",
"m.mentions": {},
"msgtype": "m.text"
}
Presumably we either need to fix the pills some other way or enable MD input support in the RTE.
Handled in #2246 |
Fixes #1999
I can understand the rational behind why the code that removes formatted_body for non-RTE mode might have been added but whether we send 'formatted_body' should not be tied to the RTE, we should always send it(e.g. the web client sends it even on the legacy client which is markdown based, as do legacy mobile markdown clients).
It is the preferred field for clients that support displaying rich content, whereas
body
field is a plain text representation of what is informatted_body
and can be used for clients that don't support displaying rich content.formatted_body
is required for mentions to work and render correctly in the timeline, hence the bug.