From ed761133bc432270fb6b35500b9141f243068f38 Mon Sep 17 00:00:00 2001 From: zubiden <19638254+zubiden@users.noreply.github.com> Date: Sun, 29 Dec 2024 11:58:47 +0100 Subject: [PATCH] Reapply accidentally reverted fixes (#5339) --- src/global/cache.ts | 2 +- src/global/reducers/chats.ts | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/global/cache.ts b/src/global/cache.ts index f0285cbf8..6c485b632 100644 --- a/src/global/cache.ts +++ b/src/global/cache.ts @@ -446,10 +446,10 @@ function reduceChats(global: T): GlobalState['chats'] { ...currentUserId ? [currentUserId] : [], ...currentChatIds, ...messagesChatIds, + ...global.recentlyFoundChatIds || [], ...getOrderedIds(ARCHIVED_FOLDER_ID)?.slice(0, GLOBAL_STATE_CACHE_ARCHIVED_CHAT_LIST_LIMIT) || [], ...getOrderedIds(ALL_FOLDER_ID) || [], ...getOrderedIds(SAVED_FOLDER_ID) || [], - ...global.recentlyFoundChatIds || [], ...Object.keys(byId), ]).slice(0, GLOBAL_STATE_CACHE_CHAT_LIST_LIMIT); diff --git a/src/global/reducers/chats.ts b/src/global/reducers/chats.ts index 3e10c4cb0..255ff02ba 100644 --- a/src/global/reducers/chats.ts +++ b/src/global/reducers/chats.ts @@ -374,10 +374,6 @@ export function updateChatListSecondaryInfo( ...global.chats.totalCount, [totalCountKey]: info.totalChatCount, }, - isFullyLoaded: { - ...global.chats.isFullyLoaded, - [type]: false, - }, }, }; }