starred_messages: Rename count() to get_count().

It would conflict with the count variable after migration to an ES6
module.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2020-09-24 01:56:01 -07:00 committed by Tim Abbott
parent 03b05de7d5
commit 1d1eed2f17
1 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ exports.remove = function (ids) {
exports.rerender_ui();
};
exports.count = function () {
exports.get_count = function () {
return exports.starred_ids.size;
};
@ -37,7 +37,7 @@ exports.get_starred_msg_ids = function () {
};
exports.rerender_ui = function () {
let count = exports.count();
let count = exports.get_count();
if (!page_params.starred_message_counts) {
// This essentially hides the count