Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message_feed_top_notices: Simplify check for all message view.
Aman Agrawal73370087ed94
diff --git a/web/src/message_feed_top_notices.ts b/web/src/message_feed_top_notices.tsindex 43a79921903..681f3cf4b16 100644--- a/web/src/message_feed_top_notices.ts+++ b/web/src/message_feed_top_notices.ts@@ -41,16 +41,8 @@ export function update_top_of_narrow_notices(msg_list: MessageList): void {return;}- if (- msg_list.data.fetch_status.has_found_oldest() &&- message_lists.current !== message_lists.home- ) {+ if (msg_list.data.fetch_status.has_found_oldest()) {const filter = narrow_state.filter();- if (filter === undefined && !narrow_state.is_message_feed_visible()) {- // user moved away from the narrow / filter to Recent Conversations.- return;- }- assert(filter !== undefined);// Potentially display the notice that lets users know// that not all messages were searched. One could// imagine including `filter.is_keyword_search()` in these@@ -58,6 +50,8 @@ export function update_top_of_narrow_notices(msg_list: MessageList): void {// for moderation of searching for all messages sent// by a potential spammer user.if (+ filter &&+ !filter.is_in_home() &&!filter.contains_only_private_messages() &&!filter.includes_full_stream_history() &&!filter.is_personal_filter()