discourse/plugins/chat/assets/javascripts
Joffrey JAFFEUX b4406861ae
FIX: simplify desktop notifications behavior (#29957)
Historically the behavior of this file has been complexified to attempt to answer this use case:

A user has two tabs open, tab 1 is on a topic, tab 2 is on a chat channel. If your active tab is tab 1 and someones sends you a mention in chat. We will show a desktop notification, but in which tab the channel should open if you click it? The changes made years ago said: in tab 2.

I think this is complexifying too much this codepath and is also confusing. You might wonder why this discourse notification you clicked opened in some of your 50 tabs in the background when you had a discourse tab active currently in front of you.

Moreover, a recent change has made the notification to only happen on desktop, but all the subscription stuff was happening regardless of mobile or desktop.
2024-11-27 17:33:31 +01:00
..
discourse FIX: simplify desktop notifications behavior (#29957) 2024-11-27 17:33:31 +01:00
lib/discourse-markdown DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
select-kit/addons/components DEV: Convert select-kit subclasses to native class syntax (#28491) 2024-08-23 13:19:26 +01:00