load in optimization and error correction
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { store } from "@/store";
|
||||
import { store, isCurrentUserContextTag } from "@/store";
|
||||
import { render } from "solid-js/web";
|
||||
import tippy, { type Instance as TippyInstance } from "tippy.js";
|
||||
import { MentionList } from "@/components/MentionList";
|
||||
@@ -8,6 +8,7 @@ export const userSuggestion = {
|
||||
items: ({ query }: { query: string }) => {
|
||||
return store.contexts
|
||||
.filter(context => context.kind === "user" && !context.deletedAt)
|
||||
.filter(context => !isCurrentUserContextTag(buildShareTag(context.displayName)))
|
||||
.filter(context => context.displayName.toLowerCase().startsWith(query.toLowerCase()))
|
||||
.map(context => ({
|
||||
id: buildShareTag(context.displayName),
|
||||
|
||||
Reference in New Issue
Block a user