discourse/plugins/chat/test/javascripts/unit
David Battersby 2a5e1aa8e6
FEATURE: only play chat sound when chat badge icon is shown (#28387)
Every time a desktop chat sound plays, there should be some visual cue as to why the sound was played in the first place.

This change follows the chat indicator preference:

- All New Messages - a blue dot is shown for all messages, so we attempt to play a sound every time
- Direct Messages, Mentions and Watched Threads - a green dot is shown for all urgent messages, so we attempt to play a sound for urgent chat notifications
- Only Mentions - only play chat sounds when user is mentioned
- Never - we never play chat sounds, as user wouldn’t know why the sound was played
2024-09-06 18:25:25 +04:00
..
helpers DEV: Clean up imports (#28060) 2024-07-25 15:09:06 +02:00
lib FEATURE: only play chat sound when chat badge icon is shown (#28387) 2024-09-06 18:25:25 +04:00
models DEV: Clean up imports (#28060) 2024-07-25 15:09:06 +02:00
services DEV: Clean up imports (#28060) 2024-07-25 15:09:06 +02:00
utility DEV: Clean up imports (#28060) 2024-07-25 15:09:06 +02:00