mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 17:07:07 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user