From c953759486b6d140456cf3763533ab9a8ab7be99 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Tue, 12 Sep 2017 06:02:40 -0700 Subject: [PATCH] Get unread messages from the server in the web app. The server sends down lists of unread message ids in various buckets, and we now use those on the client to provide more complete counts of unread messages. --- frontend_tests/node_tests/unread.js | 3 --- static/js/feature_flags.js | 2 -- static/js/unread.js | 4 +--- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/frontend_tests/node_tests/unread.js b/frontend_tests/node_tests/unread.js index a9ed88a94a..10816387b9 100644 --- a/frontend_tests/node_tests/unread.js +++ b/frontend_tests/node_tests/unread.js @@ -18,9 +18,6 @@ var stream_data = require('js/stream_data.js'); set_global('stream_data', stream_data); set_global('blueslip', {}); set_global('page_params', {}); -set_global('feature_flags', { - load_server_counts: true, -}); var Dict = global.Dict; var muting = global.muting; diff --git a/static/js/feature_flags.js b/static/js/feature_flags.js index a41abdc713..9e9b054f42 100644 --- a/static/js/feature_flags.js +++ b/static/js/feature_flags.js @@ -2,8 +2,6 @@ var feature_flags = (function () { var exports = {}; -exports.load_server_counts = false; - // Experimental modification to support much wider message views. exports.full_width = false; diff --git a/static/js/unread.js b/static/js/unread.js index 457769158f..3d45f0f7c3 100644 --- a/static/js/unread.js +++ b/static/js/unread.js @@ -480,9 +480,7 @@ exports.load_server_counts = function () { }; exports.initialize = function () { - if (feature_flags.load_server_counts) { - exports.load_server_counts(); - } + exports.load_server_counts(); }; return exports;