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, - }, }, }; }