From c528e768ffaf145d8a71bd64041d367cedb0eb5c Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 19 Jan 2022 12:46:03 -0800 Subject: [PATCH] message_scroll: Remove misleading comment. The hacky code referenced in this comment was removed in d59ccd4c0f386b91b03003e9a2aca972254a10f4. --- static/js/message_scroll.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/static/js/message_scroll.js b/static/js/message_scroll.js index 8b7de709b0..9092d3ff5b 100644 --- a/static/js/message_scroll.js +++ b/static/js/message_scroll.js @@ -80,11 +80,8 @@ export function hide_end_of_results_notice() { export function show_end_of_results_notice() { $(".all-messages-search-caution").show(); + // Set the link to point to this search with streams:public added. - // It's a bit hacky to use the href, but - // !filter.includes_full_stream_history() implies streams:public - // wasn't already present. - // Computes the URL of the current narrow if streams:public were added. const operators = narrow_state.filter().operators(); const update_hash = hash_util.search_public_streams_notice_url(operators); $(".all-messages-search-caution a.search-shared-history").attr("href", update_hash);