Add support to mark videos as spoilers (#2255)
authorGinger <ginger@gingershaped.computer>
Thu, 25 Sep 2025 03:41:35 +0000 (23:41 -0400)
committerGitHub <noreply@github.com>
Thu, 25 Sep 2025 03:41:35 +0000 (13:41 +1000)
commitb78f6f23b568bdfa4f20aa7ddc9505dfd3558599
tree8ff3c034b39663350c84d0cf4d8382a1077d002b
parent867a47218a7150b8c1dd652b815136a50813c087
Add support to mark videos as spoilers (#2255)

* Add support for MSC4193: Spoilers on Media

* Clarify variable names and wording

* Restore list atom

* Improve spoilered image UX with autoload off

* Use `aria-pressed` to indicate attachment spoiler state

* Improve spoiler button tooltip wording, keep reveal button from conflicting with load errors

* Make it possible to mark videos as spoilers

* Allow videos to be marked as spoilers when uploaded

* Apply requested changes

* Show a loading spinner on spoiled media when unblurred

---------

Co-authored-by: Ajay Bura <32841439+ajbura@users.noreply.github.com>
src/app/components/RenderMessageContent.tsx
src/app/components/message/MsgTypeRenderers.tsx
src/app/components/message/content/ImageContent.tsx
src/app/components/message/content/VideoContent.tsx
src/app/components/upload-card/UploadCardRenderer.tsx
src/app/features/room/msgContent.ts