Don't suggest users who can't be messaged/added (#10820)

This commit is contained in:
DS Boyce
2026-06-09 10:45:50 -07:00
committed by GitHub
parent df8c731f1d
commit 994e27ded1
2 changed files with 2 additions and 10 deletions
+1 -4
View File
@@ -303,6 +303,7 @@ export function InitiateChatFlow({
if (follows) {
for (const page of follows.pages) {
for (const profile of page.follows) {
if (!checker(profile)) continue
_items.push({
type: 'profile',
key: profile.did,
@@ -310,10 +311,6 @@ export function InitiateChatFlow({
})
}
}
_items = _items.sort(item => {
return item.type === 'profile' && checker(item.profile) ? -1 : 1
})
} else {
_items.push(...placeholders)
}