Krzysztof Kotlarek da2a61e36c
FIX: correct tracking when mute all categories (#11441)
Currently, we have a solution for muted topics. Basically, when a post is created first we send a `muted` message to users who muted that specific topic:

https://github.com/discourse/discourse/blob/master/app/models/topic_tracking_state.rb#L91

Later, topic tracking state filters if the topic is muted or not before update state:

https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/app/models/topic-tracking-state.js#L58:L67

That solution works quite well.

I wanted to extend it to handle `mute all categories by default` setting as well.

In that case, we should only inform the user about new topic/post when they explicitly want to.

If that setting is enabled, we would send "unmuted" message to a user who watches specific category, topic or tag. In all other cases, don't inform user about new topic as all categories are muted by default.

Meta: https://meta.discourse.org/t/threads-muted-by-mute-all-by-default-are-showing-up-as-new-but-not-visible/168324
2020-12-10 16:49:05 +11:00
..
2020-04-28 15:59:39 +05:30
2019-11-29 15:49:08 +00:00
2020-08-21 11:36:53 +08:00
2020-10-27 23:42:33 +05:30
2020-10-27 23:42:33 +05:30
2019-10-21 12:08:20 +01:00
2019-05-13 15:24:24 +01:00
2020-05-05 13:46:57 +10:00
2020-09-01 13:41:04 +05:30
2020-09-01 13:41:04 +05:30
2020-09-01 13:41:04 +05:30
2020-12-02 12:36:41 +05:30
2020-10-27 23:42:33 +05:30
2020-10-27 23:42:33 +05:30
2020-10-27 23:42:33 +05:30
2020-10-27 23:42:33 +05:30
2020-04-28 15:59:39 +05:30
2020-10-27 23:42:33 +05:30
2019-10-17 16:58:22 +11:00
2020-10-27 23:42:33 +05:30