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 d073049ed2
commit f42ff8e4cf
6 changed files with 138 additions and 40 deletions
+2 -1
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 || ''},
{