Unify calculation of unread-count for notifications and use it in the title bar

Fixes trac #1004

(imported from commit 6f04d1d3ded198b46cc2ff1733b94b5c17beb581)
This commit is contained in:
Leo Franchi
2013-03-19 16:53:49 -04:00
parent 02554b28cb
commit 6263c9ba1e
5 changed files with 60 additions and 63 deletions

View File

@@ -530,8 +530,10 @@ $(function () {
} else if (!have_scrolled_away_from_top) {
have_scrolled_away_from_top = true;
}
// When the window scrolls, it may cause some messages to go off the screen
// When the window scrolls, it may cause some messages to
// enter the screen and become read
notifications_bar.update();
notifications.update_title_count();
var new_selected = current_msg_list.selected_id();
if (scroll_start_message === undefined) {