mirror of
https://github.com/discourse/discourse.git
synced 2024-12-19 19:44:13 +08:00
b4406861ae
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. |
||
---|---|---|
.. | ||
javascripts | ||
stylesheets |