discourse/plugins/chat
David Battersby 7bcd46b87d
DEV: use service worker for chat sound (#29388)
This change makes use of service workers to determine if we should play chat sounds in the current browser tab. Since users can have multiple tabs open, we currently attempt to play sound across all active tabs.

With this change we iterate over all clients and check if client.focused is true (ie. the current tab/window we have open), if so we allow playing the audio in the current tab and for all other hidden tabs/windows we return false.

---------

Co-authored-by: Bianca Nenciu <nbianca@users.noreply.github.com>
2024-10-29 13:15:53 +04:00
..
admin/assets/javascripts UX: Consistent styling for admin tables on mobile (#29360) 2024-10-23 16:26:21 -06:00
app DEV: Replace params by the contract object in services 2024-10-25 14:48:34 +02:00
assets DEV: use service worker for chat sound (#29388) 2024-10-29 13:15:53 +04:00
config Update translations (#29335) 2024-10-22 22:44:33 +09:00
db DEV: Remove logical OR assignment of constants (#29201) 2024-10-16 10:09:07 +08:00
lib DEV: Provide user input to services using params key 2024-10-25 09:57:59 +02:00
public
spec DEV: Replace params by the contract object in services 2024-10-25 14:48:34 +02:00
test/javascripts DEV: use service worker for chat sound (#29388) 2024-10-29 13:15:53 +04:00
plugin.rb DEV: Provide user input to services using params key 2024-10-25 09:57:59 +02:00
README.md DEV: Chat service object initial implementation (#19814) 2023-02-13 13:09:57 +01:00

This plugin is still in active development and may change frequently

Documentation

The Discourse Chat plugin adds chat functionality to your Discourse so it can natively support both long-form and short-form communication needs of your online community.

For user documentation, see Discourse Chat.

For developer documentation, see Discourse Documentation.