Don't show Suggested heading if there are no suggestions (#10695)

This commit is contained in:
DS Boyce
2026-06-02 13:27:43 -07:00
committed by GitHub
parent b87a51b485
commit 75490c3cdf
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -219,7 +219,7 @@ export function AddMembersFlow({
}
}
if (searchText === '') {
if (searchText === '' && _items.length > 0) {
_items.unshift({
type: 'label',
key: 'suggested',
+1
View File
@@ -316,6 +316,7 @@ export function InitiateChatFlow({
if (
searchText === '' &&
_items.length > 0 &&
(chatState === ChatState.NEW_CHAT ||
chatState === ChatState.NEW_GROUP_CHAT)
) {