fix: event hook

This commit is contained in:
Kieran 2024-01-02 16:06:43 +00:00
parent 8bbbd11f7a
commit 0d10122394
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -135,7 +135,7 @@ export const fuzzySearch = new Fuse<FuzzySearchResult>([], {
const profileTimestamps = new Map<string, number>();
// how to also add entries from ProfileCache?
System.on("event", ev => {
System.on("event", (_, ev) => {
if (ev.kind === 0) {
const existing = profileTimestamps.get(ev.pubkey);
if (existing) {