forked from Kieran/snort
fix: event hook
This commit is contained in:
parent
8bbbd11f7a
commit
0d10122394
@ -135,7 +135,7 @@ export const fuzzySearch = new Fuse<FuzzySearchResult>([], {
|
|||||||
const profileTimestamps = new Map<string, number>();
|
const profileTimestamps = new Map<string, number>();
|
||||||
|
|
||||||
// how to also add entries from ProfileCache?
|
// how to also add entries from ProfileCache?
|
||||||
System.on("event", ev => {
|
System.on("event", (_, ev) => {
|
||||||
if (ev.kind === 0) {
|
if (ev.kind === 0) {
|
||||||
const existing = profileTimestamps.get(ev.pubkey);
|
const existing = profileTimestamps.get(ev.pubkey);
|
||||||
if (existing) {
|
if (existing) {
|
||||||
|
Loading…
Reference in New Issue
Block a user