mirror of
https://github.com/zulip/zulip.git
synced 2025-11-19 22:19:48 +00:00
Eliminate approximate_unread_count().
We use page_params.unread_msgs.count in the web app instead. Fixes #1300.
This commit is contained in:
@@ -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});
|
||||
|
||||
Reference in New Issue
Block a user