0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-04 10:39:43 +08:00
discourse/plugins/chat/db
Kris 0284e0a2a5
A11Y: live announcements and optional sounds for chat messages (#41213)
This introduces two new chat settings in user preferences, grouped in a
new accessibility section.

The first "announce new messages to screen readers", defaults on, and
uses an aria live region to politely announce messages as they're
posted. There's some grouping (user sent 3 messages) and throttling
involved here in cases where many messages are sent, and attachments are
also referenced.

The second "Play a sound for every new message while chat is in the
foreground" is default off, and provides an optional secondary approach
if the announcement of messages proves to be too noisy. This plays a
sound for each message (throttled slightly to avoid floods), and leans
on our existing chat sounds.

<img width="500" alt="image"
src="https://github.com/user-attachments/assets/3c4e6173-3b2d-463d-9040-050311f91d63"
/>
2026-07-02 12:48:58 -04:00
..
fixtures
migrate A11Y: live announcements and optional sounds for chat messages (#41213) 2026-07-02 12:48:58 -04:00
post_migrate FIX: Recreate missing user_chat_channel_memberships for DMs (#40560) 2026-06-04 09:09:39 +02:00