FEATURE: suggested messages for messages

FEATURE: clicking envelope takes you to inbox

Suggested messages works somewhat like suggested topics.

- New show up first (in either group inbox or inbox)
- Then unread (in either group inbox or inbox)
- Finally "related" which are messages with same participants as the current pm.
This commit is contained in:
Sam Saffron
2016-02-03 18:50:05 +11:00
parent 133fcef72c
commit bc75010b20
14 changed files with 296 additions and 27 deletions

View File

@ -295,7 +295,6 @@ class TopicView
end
def suggested_topics
return nil if topic.private_message?
@suggested_topics ||= TopicQuery.new(@user).list_suggested_for(topic)
end