Reapply accidentally reverted fixes (#5339)
This commit is contained in:
parent
3abd843dd5
commit
ed761133bc
@ -446,10 +446,10 @@ function reduceChats<T extends GlobalState>(global: T): GlobalState['chats'] {
|
|||||||
...currentUserId ? [currentUserId] : [],
|
...currentUserId ? [currentUserId] : [],
|
||||||
...currentChatIds,
|
...currentChatIds,
|
||||||
...messagesChatIds,
|
...messagesChatIds,
|
||||||
|
...global.recentlyFoundChatIds || [],
|
||||||
...getOrderedIds(ARCHIVED_FOLDER_ID)?.slice(0, GLOBAL_STATE_CACHE_ARCHIVED_CHAT_LIST_LIMIT) || [],
|
...getOrderedIds(ARCHIVED_FOLDER_ID)?.slice(0, GLOBAL_STATE_CACHE_ARCHIVED_CHAT_LIST_LIMIT) || [],
|
||||||
...getOrderedIds(ALL_FOLDER_ID) || [],
|
...getOrderedIds(ALL_FOLDER_ID) || [],
|
||||||
...getOrderedIds(SAVED_FOLDER_ID) || [],
|
...getOrderedIds(SAVED_FOLDER_ID) || [],
|
||||||
...global.recentlyFoundChatIds || [],
|
|
||||||
...Object.keys(byId),
|
...Object.keys(byId),
|
||||||
]).slice(0, GLOBAL_STATE_CACHE_CHAT_LIST_LIMIT);
|
]).slice(0, GLOBAL_STATE_CACHE_CHAT_LIST_LIMIT);
|
||||||
|
|
||||||
|
|||||||
@ -374,10 +374,6 @@ export function updateChatListSecondaryInfo<T extends GlobalState>(
|
|||||||
...global.chats.totalCount,
|
...global.chats.totalCount,
|
||||||
[totalCountKey]: info.totalChatCount,
|
[totalCountKey]: info.totalChatCount,
|
||||||
},
|
},
|
||||||
isFullyLoaded: {
|
|
||||||
...global.chats.isFullyLoaded,
|
|
||||||
[type]: false,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user