Add support for spoilers on images (MSC4193) (#2212)
authorGinger <75683114+gingershaped@users.noreply.github.com>
Sat, 22 Feb 2025 08:55:13 +0000 (03:55 -0500)
committerGitHub <noreply@github.com>
Sat, 22 Feb 2025 08:55:13 +0000 (14:25 +0530)
commitdd4c1a94e6aa704f316891ce58760dee616f8ffb
tree9b15f268e68e543630a8f9d1d085fb2015631155
parent7c6ab366aff46fa4c10fc8096541bc0085d9f183
Add support for spoilers on images (MSC4193) (#2212)

* 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
src/app/components/message/MsgTypeRenderers.tsx
src/app/components/message/content/ImageContent.tsx
src/app/components/message/content/style.css.ts
src/app/components/upload-card/UploadCardRenderer.tsx
src/app/features/room/RoomInput.tsx
src/app/features/room/msgContent.ts
src/app/state/list.ts
src/app/state/room/roomInputDrafts.ts
src/types/matrix/common.ts