Show unread subjects in stream sidebar.

Trac #1403.

This shows the 5 most recent subjects, as well as any others with unread messages. This
requires tracking all subjects and filtering at display time, rather than filtering when
building the subject list.

(imported from commit 8bda7d50e6785a6e70abea4b3af4d03a16d076d3)
This commit is contained in:
Kevin Mehall
2013-06-27 10:26:33 -04:00
parent 1e246ba32d
commit 371b3827d2
2 changed files with 6 additions and 6 deletions

View File

@@ -495,7 +495,6 @@ function case_insensitive_find(term, array) {
function process_message_for_recent_subjects(message, remove_message) {
var current_timestamp = 0;
var max_subjects = 5;
var count = 0;
var canon_stream = subs.canonicalized_name(message.stream);
var canon_subject = subs.canonicalized_name(message.subject);
@@ -534,8 +533,6 @@ function process_message_for_recent_subjects(message, remove_message) {
return b.timestamp - a.timestamp;
});
recents = recents.slice(0, max_subjects);
recent_subjects[canon_stream] = recents;
}