FIX: Show read indicator only for group PMs (#11224)

It used to show for PMs converted to public topics.
This commit is contained in:
Bianca Nenciu
2020-11-13 19:13:37 +02:00
committed by GitHub
parent 65e123498b
commit 5ca0fbc423
2 changed files with 27 additions and 1 deletions

View File

@ -106,7 +106,7 @@ class TopicView
end
def show_read_indicator?
return false unless @user || topic.private_message?
return false if !@user || !topic.private_message?
topic.allowed_groups.any? do |group|
group.publish_read_state? && group.users.include?(@user)