diff --git a/src/components/left/search/LeftSearch.scss b/src/components/left/search/LeftSearch.scss index 6341e371d..766995b43 100644 --- a/src/components/left/search/LeftSearch.scss +++ b/src/components/left/search/LeftSearch.scss @@ -85,6 +85,10 @@ } } + .RecentContacts .search-section { + padding-left: 0.25rem; + } + .WebLink { display: flex; } @@ -123,6 +127,10 @@ } .ListItem.search-result { + .ListItem-button { + padding: 0.375rem; + } + .ChatInfo { // Fix for overflow hidden and stories indicator padding: 0.0625rem; @@ -185,7 +193,7 @@ } .search-section { - padding: 0 0.125rem 0 1rem; + padding: 0 0.125rem 0 0.75rem; .section-heading { color: var(--color-text-secondary); diff --git a/src/components/ui/ListItem.scss b/src/components/ui/ListItem.scss index 058af94ae..70a21e712 100644 --- a/src/components/ui/ListItem.scss +++ b/src/components/ui/ListItem.scss @@ -224,7 +224,7 @@ } .ListItem-button { - padding: 0.375rem; + padding: 0.5625rem; } &.contact-list-item { diff --git a/src/global/cache.ts b/src/global/cache.ts index 0c83328d3..58e782a9c 100644 --- a/src/global/cache.ts +++ b/src/global/cache.ts @@ -382,10 +382,10 @@ function reduceUsers(global: T): GlobalState['users'] { ...visibleUserIds || [], ...attachBotIds, ...global.topPeers.userIds || [], + ...global.recentlyFoundChatIds?.filter(isUserId) || [], ...getOrderedIds(ARCHIVED_FOLDER_ID)?.slice(0, GLOBAL_STATE_CACHE_ARCHIVED_CHAT_LIST_LIMIT).filter(isUserId) || [], ...getOrderedIds(ALL_FOLDER_ID)?.filter(isUserId) || [], ...global.contactList?.userIds || [], - ...global.recentlyFoundChatIds?.filter(isUserId) || [], ...Object.keys(byId), ]).slice(0, GLOBAL_STATE_CACHE_USER_LIST_LIMIT);