diff --git a/packages/app/src/index.tsx b/packages/app/src/index.tsx index 2f49c9f9..1ff64552 100644 --- a/packages/app/src/index.tsx +++ b/packages/app/src/index.tsx @@ -19,6 +19,7 @@ import { mapEventToProfile, PowWorker, encodeTLVEntries, + socialGraphInstance, } from "@snort/system"; import { SnortContext } from "@snort/system-react"; import { removeUndefined, throwIfOffline } from "@snort/shared"; @@ -109,6 +110,12 @@ System.on("auth", async (c, r, cb) => { } }); +System.on("event", ev => { + if (ev.kind === 3) { + socialGraphInstance.handleFollowEvent(ev); + } +}); + async function fetchProfile(key: string) { try { throwIfOffline();