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.

message-fetch: Update empty narrow check to include opts message list.

Lauryn Menard75630fb151f7
diff --git a/static/js/message_fetch.js b/static/js/message_fetch.js
index 62b6002e8fc..d64a1507d14 100644
--- a/static/js/message_fetch.js
+++ b/static/js/message_fetch.js
@@ -54,7 +54,11 @@ function process_result(data, opts) {
message_util.add_old_messages(messages, opts.msg_list);
}
- if (message_lists.current === message_list.narrowed && message_list.narrowed.empty()) {
+ if (
+ opts.msg_list === message_list.narrowed &&
+ message_lists.current === message_list.narrowed &&
+ message_list.narrowed.empty()
+ ) {
// Even after loading more messages, we have
// no messages to display in this narrow.
narrow_banner.show_empty_narrow_message();