mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Group inbox new filter not accounting for dismissed topics.
Follow-up to 2c046cc670
This commit is contained in:
@@ -104,6 +104,7 @@ class TopicQuery
|
||||
|
||||
def list_private_messages_group_new(user)
|
||||
list = filter_private_message_new(user, :group)
|
||||
list = remove_dismissed(list, user)
|
||||
publish_read_state = !!group.publish_read_state
|
||||
list = append_read_state(list, group) if publish_read_state
|
||||
create_list(:private_messages, { publish_read_state: publish_read_state }, list)
|
||||
|
||||
Reference in New Issue
Block a user