mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
FEATURE: New and Unread messages for user personal messages. (#13603)
* FEATURE: New and Unread messages for user personal messages. Co-authored-by: awesomerobot <kris.aubuchon@discourse.org>
This commit is contained in:

committed by
GitHub

parent
fe3e18f981
commit
016efeadf6
@ -545,8 +545,9 @@ class TopicTrackingState
|
||||
group_user_ids = group.users.pluck(:id)
|
||||
next if group_user_ids.blank?
|
||||
group_channels = []
|
||||
group_channels << "/private-messages/group/#{group.name.downcase}"
|
||||
group_channels << "#{group_channels.first}/archive" if group_archive
|
||||
channel_prefix = "/private-messages/group/#{group.name.downcase}"
|
||||
group_channels << "#{channel_prefix}/inbox"
|
||||
group_channels << "#{channel_prefix}/archive" if group_archive
|
||||
group_channels.each { |channel| channels[channel] = group_user_ids }
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user