Add "Unread" filter to messages tab. Rename the other two views.

This commit is contained in:
Robin Ward
2013-08-30 12:32:05 -04:00
parent 232f5bd743
commit 46efbac40e
8 changed files with 45 additions and 30 deletions

View File

@ -146,6 +146,11 @@ class TopicQuery
TopicList.new(:private_messages, user, list)
end
def list_private_messages_unread(user)
list = private_messages_for(user)
list = TopicQuery.unread_filter(list)
TopicList.new(:private_messages, user, list)
end
def list_uncategorized
create_list(:uncategorized, unordered: true) do |list|