FEATURE: new watched_precedence_over_muted setting (#22252)

New setting which allow admin to define behavior when topic is in watched category and muted topic and vice versa.

If watched_precedence_over_muted setting is true, that topic is still visible in list of topics and notification is created.

If watched_precedence_over_muted setting is false, that topic is not still visible in list of topics and notification is skipped as well.
This commit is contained in:
Krzysztof Kotlarek
2023-06-27 14:49:34 +10:00
committed by GitHub
parent 4f7f9ef87c
commit 9cf981f1f1
8 changed files with 218 additions and 17 deletions

View File

@ -49,7 +49,7 @@ class TopicQuery
def list_private_messages_new(user, type = :user)
list = filter_private_message_new(user, type)
list = TopicQuery.remove_muted_tags(list, user)
list = TopicQuery.remove_muted_tags(list, user, skip_categories: true)
list = remove_dismissed(list, user)
create_list(:private_messages, {}, list)