mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-28 14:04:10 +01:00
Clarify spoiler documentation
This commit is contained in:
parent
f73ebb40f1
commit
06a469c8d9
|
|
@ -327,12 +327,11 @@ If a reason were to be supplied, it would look like:
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
When sending a spoiler, clients SHOULD provide the spoilered text fallback in the `body`
|
When sending a spoiler, clients SHOULD provide the fallback in the `body` as shown above
|
||||||
as shown above (including the reason). The fallback SHOULD omit the spoiler text verbatim
|
(including the reason). The fallback SHOULD omit the spoiler text verbatim since `body`
|
||||||
since `body` might show up in text-only clients or in notifications. To prevent spoilers
|
might show up in text-only clients or in notifications. To prevent spoilers showing up in
|
||||||
showing up in such situations, clients are strongly encouraged to first upload the spoilered
|
such situations, clients are strongly encouraged to first upload the text containing spoilers
|
||||||
text to the media repository then reference the MXC URI in a markdown-style link, as shown
|
to the media repository, then reference the MXC URI in a markdown-style link, as shown above.
|
||||||
above.
|
|
||||||
|
|
||||||
Clients SHOULD render spoilers differently with some sort of disclosure. For example, the
|
Clients SHOULD render spoilers differently with some sort of disclosure. For example, the
|
||||||
client could blur the actual text and ask the user to click on it for it to be revealed.
|
client could blur the actual text and ask the user to click on it for it to be revealed.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue