Skip to content

Replies to polls do not include formatted body #24197

Closed
matrix-org/matrix-react-sdk
#10380
@kerryarchibald

Description

@kerryarchibald

Steps to reproduce

  1. create a poll
  2. reply to the poll in EW
  3. observe no <mx-reply> formatted body in the reply message

Outcome

Web should explicitly handle poll start events replies to match other platforms:

Eg reply to poll from iOS

  "content": {
    "body": "> <@user:matrix.org> %poll question%\n\n%reply content%",
    "format": "org.matrix.custom.html",
    "formatted_body": "<mx-reply><blockquote><a href=\"https://matrix.to/#/!CVJnkRSzTJbFTaNblu%3Amatrix.org/%24aEFuRjG8nOYdyKl_62cj2_lVN9IqaTPyvRxvQgdVdNM\">In reply to</a> <a href=\"https://matrix.to/#/@user:matrix.org\">@user:matrix.org</a><br>%poll question%</blockquote></mx-reply>%reply content%",
    "m.relates_to": {
      "m.in_reply_to": {
        "event_id": "$xxxx"
      }
    },
  },

Operating system

No response

Browser information

No response

URL for webapp

No response

Application version

No response

Homeserver

No response

Will you send logs?

No

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions