Include unread topic in unread message count

This commit is contained in:
Eric Budd 2018-05-13 01:42:04 -04:00
parent cb0aca4e54
commit 8225291867
2 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,7 @@
* ~Add column headers for topics~
* ~Document new features~
* ~Keep replies on edited topics~
* ~Add unread topic to overall unread count~
# Bugs:
* Is `Time.now.utc.iso8601` working as expected?

View File

@ -394,6 +394,7 @@ class Message
def topic_status
return '{r X}' unless valid?
unread_count = replies.count(&:unread?)
unread_count += 1 if self.unread?
return ' ' if unread_count == 0
return '*' if unread_count > 9
unread_count.to_s