Skip to content
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

Replies always send HTML formatted bodies #28592

Closed
twassman opened this issue Nov 29, 2024 · 1 comment · Fixed by #28610
Closed

Replies always send HTML formatted bodies #28592

twassman opened this issue Nov 29, 2024 · 1 comment · Fixed by #28610
Assignees
Labels
A-Composer A-Replies reply O-Occasional Affects or can be seen by some users regularly or most users rarely S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect

Comments

@twassman
Copy link

twassman commented Nov 29, 2024

Steps to reproduce

  1. Send a message
  2. Send a plaintext reply, without any rich-text/formatting (e.g.: "Example reply")

Outcome

What did you expect?

The reply content should contain only a body with the content of the reply.

What happened instead?

The reply content also contains a formatted_body, even though no formatting is added. (e.g.:)

{
  "type": "m.room.message",
  "content": {
    "msgtype": "m.text",
    "body": "Example reply",
    "format": "org.matrix.custom.html",
    "formatted_body": "Example reply",
    "m.mentions": {},
    "m.relates_to": {
      "m.in_reply_to": {
        "event_id": "$YaXjPQGLxxBEMovOzidokXjl-gKRY0IKKovKGAZkcmo"
      }
    }
  }
}

Operating system

No response

Browser information

No response

URL for webapp

staging.element.io

Application version

Element version: 1.11.87-rc.7

Homeserver

No response

Will you send logs?

No

@dosubot dosubot bot added A-Replies reply O-Occasional Affects or can be seen by some users regularly or most users rarely S-Minor Impairs non-critical functionality or suitable workarounds exist labels Nov 29, 2024
@twassman
Copy link
Author

This may now be an issue due to the changes in #28406, as previously, the inclusion of reply fallbacks implied that all replies should have a formatted_body.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Composer A-Replies reply O-Occasional Affects or can be seen by some users regularly or most users rarely S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants