Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

narrow: Remove last remains of was_narrowed_already.

Aman Agrawal71341d282e12
diff --git a/web/src/narrow.js b/web/src/narrow.js
index 4f7505e9d88..4f0dbdef797 100644
--- a/web/src/narrow.js
+++ b/web/src/narrow.js
@@ -272,9 +272,6 @@ export function activate(raw_terms, opts) {
return;
}
- // Use to determine if user read any unread messages outside the combined feed.
- const was_narrowed_already = message_lists.current?.narrowed;
-
// Since narrow.activate is called directly from various
// places in our code without passing through hashchange,
// we need to check if the narrow is allowed for spectator here too.
@@ -309,7 +306,7 @@ export function activate(raw_terms, opts) {
const span_data = {
op: "function",
description: "narrow",
- data: {was_narrowed_already, raw_terms, trigger: opts.trigger},
+ data: {raw_terms, trigger: opts.trigger},
};
let span;
if (!existing_span) {