/spoiler includes spoiler text in raw text #27498
Labels
S-Minor
Impairs non-critical functionality or suitable workarounds exist
T-Defect
X-Needs-Info
This issue is blocked awaiting information from the reporter
Steps to reproduce
/spoiler This is my spoiler text
Note, this is different from #14447 (spoiler text appears in notifications) but seems to be partially mentioned in element-meta element-hq/element-meta#1634 which makes it abundandly clear that element-web is doing the wrong thing here. The spec says:
The spec also has a proposal on how the raw text is supposed to look like.
Outcome
What did you expect?
{
"type": "m.room.message",
"content": {
"msgtype": "m.text",
"format": "org.matrix.custom.html",
"body": "[Spoiler](mxc://example.org/abc123)", # per example in the spec
"formatted_body": "<span data-mx-spoiler>This is my spoiler text</span>"
}
}
What happened instead?
{
"type": "m.room.message",
"content": {
"msgtype": "m.text",
"format": "org.matrix.custom.html",
"body": "This is my spoiler text",
"formatted_body": "<span data-mx-spoiler>This is my spoiler text</span>"
}
}
Application version
Element version: 1.11.67
Will you send logs?
No
The text was updated successfully, but these errors were encountered: