refactor: upgrade nip17

This commit is contained in:
2024-04-29 17:41:11 +01:00
parent c775236438
commit 87144d9395
15 changed files with 97 additions and 33 deletions

View File

@ -5,7 +5,7 @@ import { SnortContext } from "./context";
export function useUserSearch() {
const system = useContext(SnortContext);
const cache = system.profileLoader.cache as UserProfileCache;
const cache = system.profileLoader.cache;
async function search(input: string): Promise<Array<string>> {
// try exact match first