Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't show deleted messages in unread message count

  • Loading branch information...
commit b3f5d03b8bd77664dc16d41e4c4e96c9d9856b6e 1 parent 7461f5a
Aidan Finn authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/has_private_messages_extensions.rb
View
2  lib/has_private_messages_extensions.rb
@@ -48,7 +48,7 @@ def unread_messages?
# Returns the number of unread messages for this user
def unread_message_count
- eval options[:class_name] + '.count(:conditions => ["recipient_id = ? AND read_at IS NULL", self])'
+ eval options[:class_name] + '.count(:conditions => ["recipient_id = ? AND read_at IS NULL and recipient_deleted = ?", self, false])'
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.