Eliminate approximate_unread_count().

We use page_params.unread_msgs.count in the web
app instead.

Fixes #1300.
This commit is contained in:
Steve Howell
2017-08-08 19:28:58 -04:00
committed by Tim Abbott
parent 658ac782a2
commit 274938bf5f
3 changed files with 1 additions and 19 deletions

View File

@@ -82,7 +82,7 @@ function consider_bankruptcy() {
}
var now = new XDate(true).getTime() / 1000;
if ((page_params.unread_count > 500) &&
if ((page_params.unread_msgs.count > 500) &&
(now - page_params.furthest_read_time > 60 * 60 * 24 * 2)) { // 2 days.
var unread_info = templates.render('bankruptcy_modal',
{unread_count: page_params.unread_count});