Don't show Suggested heading if there are no suggestions (#10695)
This commit is contained in:
@@ -219,7 +219,7 @@ export function AddMembersFlow({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (searchText === '') {
|
if (searchText === '' && _items.length > 0) {
|
||||||
_items.unshift({
|
_items.unshift({
|
||||||
type: 'label',
|
type: 'label',
|
||||||
key: 'suggested',
|
key: 'suggested',
|
||||||
|
|||||||
@@ -316,6 +316,7 @@ export function InitiateChatFlow({
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
searchText === '' &&
|
searchText === '' &&
|
||||||
|
_items.length > 0 &&
|
||||||
(chatState === ChatState.NEW_CHAT ||
|
(chatState === ChatState.NEW_CHAT ||
|
||||||
chatState === ChatState.NEW_GROUP_CHAT)
|
chatState === ChatState.NEW_GROUP_CHAT)
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user