From cb68964926dccc8976bb104e18bef69b823cb033 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Tue, 22 Sep 2020 17:29:31 -0700 Subject: [PATCH] narrow_state: Rename pm_string to current_filter_pm_string. It would conflict with the pm_string() function after migration to an ES6 module. Signed-off-by: Anders Kaseorg --- static/js/narrow_state.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/static/js/narrow_state.js b/static/js/narrow_state.js index fc8a0dc25b..e53c69118c 100644 --- a/static/js/narrow_state.js +++ b/static/js/narrow_state.js @@ -225,7 +225,7 @@ exports._possible_unread_message_ids = function () { let stream_id; let topic_name; - let pm_string; + let current_filter_pm_string; if (current_filter.can_bucket_by("stream", "topic")) { stream_id = exports.stream_id(); @@ -245,11 +245,11 @@ exports._possible_unread_message_ids = function () { } if (current_filter.can_bucket_by("pm-with")) { - pm_string = exports.pm_string(); - if (pm_string === undefined) { + current_filter_pm_string = exports.pm_string(); + if (current_filter_pm_string === undefined) { return []; } - return unread.get_msg_ids_for_person(pm_string); + return unread.get_msg_ids_for_person(current_filter_pm_string); } if (current_filter.can_bucket_by("is-private")) {