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.
This commit is contained in:
Steve Howell
2017-09-12 06:02:40 -07:00
parent 6c90940f84
commit c953759486
3 changed files with 1 additions and 8 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;