message_fetch: Improve check for if message list is cached.

Combined feed is no longer cached by default, so this is the
correct check for if the message list is cached or not.
This commit is contained in:
Aman Agrawal
2024-12-18 12:10:15 +05:30
committed by Tim Abbott
parent 57b0cab706
commit a95f419650

View File

@@ -226,7 +226,7 @@ function get_messages_success(data: MessageFetchResponse, opts: MessageFetchOpti
if (
opts.msg_list &&
!opts.msg_list.is_combined_feed_view &&
!opts.msg_list.should_preserve_current_rendered_state() &&
opts.msg_list !== message_lists.current
) {
// We unnarrowed before receiving new messages so