Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message_fetch: Fix incorrectly set fetch status.
Aman Agrawal9e519f8c18f1
diff --git a/web/src/message_fetch.ts b/web/src/message_fetch.tsindex 91f5790a5aa..4d5bbd88ae5 100644--- a/web/src/message_fetch.ts+++ b/web/src/message_fetch.ts@@ -229,9 +229,11 @@ function get_messages_success(data: MessageFetchResponse, opts: MessageFetchOpti!opts.msg_list.should_preserve_current_rendered_state() &&opts.msg_list !== message_lists.current) {- // We unnarrowed before receiving new messages so- // don't bother processing the newly arrived messages.- return;+ // We changed narrow before receiving new messages but+ // since the message list data is cached, we just+ // update the cached data and don't update the msg list.+ opts.msg_list_data = opts.msg_list.data;+ opts.msg_list = undefined;}if (!data) {// The server occasionally returns no data during a