Add live search to autocomplete and only highlight known handles

This commit is contained in:
Paul Frazee 2022-11-17 14:35:12 -06:00
parent 859087f21d
commit 2b98714548
6 changed files with 138 additions and 40 deletions

View file

@ -20,6 +20,7 @@ export async function post(
store: RootStoreModel,
text: string,
replyTo?: Post.PostRef,
knownHandles?: Set<string>,
) {
let reply
if (replyTo) {
@ -39,7 +40,7 @@ export async function post(
}
}
}
const entities = extractEntities(text)
const entities = extractEntities(text, knownHandles)
return await store.api.app.bsky.feed.post.create(
{did: store.me.did || ''},
{