mirror of
https://github.com/zulip/zulip.git
synced 2025-10-29 11:03:54 +00:00
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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user