Commit d2423e0
feat(audio): Play sound for returning or new chatters
Introduces an optional audio notification when a user sends their first message or returns after 8 hours of inactivity.
- Adds `beepreturning` setting to enable/disable the feature for enhanced host awareness.
- Triggers `audio/join.wav` playback for new or returning chatters based on `data.firsttime` or inactivity duration checks within `background.js`.
- Implements a playback cooldown (`RETURNING_BEEP_COOLDOWN_MS`) to prevent notification spam.
- Displays a user hint via `messagePopup` to guide users on enabling background audio playback in their browser.
- Skips notifications for internal system messages or events (e.g., `reflection`, `replay`, `bot`, `host`) to reduce noise.
- Incorporates new general audio assets (`bell.wav`, `chime.wav`, `join.wav`, `leave.wav`) with `join.wav` being used for this specific feature.
[auto-enhanced]1 parent 4e81f00 commit d2423e0
File tree
7 files changed
+93
-24
lines changed- audio
7 files changed
+93
-24
lines changedBinary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
| |||
3815 | 3819 | | |
3816 | 3820 | | |
3817 | 3821 | | |
3818 | | - | |
3819 | | - | |
3820 | | - | |
3821 | | - | |
3822 | | - | |
3823 | | - | |
3824 | | - | |
| 3822 | + | |
| 3823 | + | |
| 3824 | + | |
| 3825 | + | |
| 3826 | + | |
| 3827 | + | |
| 3828 | + | |
| 3829 | + | |
| 3830 | + | |
| 3831 | + | |
| 3832 | + | |
| 3833 | + | |
| 3834 | + | |
| 3835 | + | |
3825 | 3836 | | |
3826 | 3837 | | |
3827 | 3838 | | |
| |||
10807 | 10818 | | |
10808 | 10819 | | |
10809 | 10820 | | |
10810 | | - | |
10811 | | - | |
10812 | | - | |
10813 | | - | |
10814 | | - | |
10815 | | - | |
10816 | | - | |
10817 | | - | |
| 10821 | + | |
| 10822 | + | |
| 10823 | + | |
| 10824 | + | |
| 10825 | + | |
| 10826 | + | |
| 10827 | + | |
| 10828 | + | |
| 10829 | + | |
| 10830 | + | |
| 10831 | + | |
| 10832 | + | |
| 10833 | + | |
| 10834 | + | |
| 10835 | + | |
| 10836 | + | |
| 10837 | + | |
| 10838 | + | |
| 10839 | + | |
| 10840 | + | |
| 10841 | + | |
| 10842 | + | |
| 10843 | + | |
| 10844 | + | |
| 10845 | + | |
| 10846 | + | |
| 10847 | + | |
| 10848 | + | |
| 10849 | + | |
| 10850 | + | |
| 10851 | + | |
| 10852 | + | |
| 10853 | + | |
| 10854 | + | |
| 10855 | + | |
| 10856 | + | |
| 10857 | + | |
| 10858 | + | |
| 10859 | + | |
| 10860 | + | |
| 10861 | + | |
| 10862 | + | |
| 10863 | + | |
| 10864 | + | |
| 10865 | + | |
10818 | 10866 | | |
10819 | 10867 | | |
10820 | 10868 | | |
| |||
11142 | 11190 | | |
11143 | 11191 | | |
11144 | 11192 | | |
11145 | | - | |
11146 | | - | |
11147 | | - | |
11148 | | - | |
11149 | | - | |
| 11193 | + | |
| 11194 | + | |
| 11195 | + | |
| 11196 | + | |
| 11197 | + | |
| 11198 | + | |
| 11199 | + | |
| 11200 | + | |
| 11201 | + | |
| 11202 | + | |
| 11203 | + | |
| 11204 | + | |
| 11205 | + | |
| 11206 | + | |
| 11207 | + | |
| 11208 | + | |
| 11209 | + | |
| 11210 | + | |
| 11211 | + | |
11150 | 11212 | | |
11151 | 11213 | | |
11152 | 11214 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5048 | 5048 | | |
5049 | 5049 | | |
5050 | 5050 | | |
| 5051 | + | |
| 5052 | + | |
| 5053 | + | |
| 5054 | + | |
| 5055 | + | |
| 5056 | + | |
| 5057 | + | |
5051 | 5058 | | |
5052 | 5059 | | |
5053 | 5060 | | |
| |||
0 commit comments