feed all follow events to socialGraphInstance.handleFollowEvent
This commit is contained in:
parent
4fbe92baa2
commit
fea0e3c475
@ -19,6 +19,7 @@ import {
|
|||||||
mapEventToProfile,
|
mapEventToProfile,
|
||||||
PowWorker,
|
PowWorker,
|
||||||
encodeTLVEntries,
|
encodeTLVEntries,
|
||||||
|
socialGraphInstance,
|
||||||
} from "@snort/system";
|
} from "@snort/system";
|
||||||
import { SnortContext } from "@snort/system-react";
|
import { SnortContext } from "@snort/system-react";
|
||||||
import { removeUndefined, throwIfOffline } from "@snort/shared";
|
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) {
|
async function fetchProfile(key: string) {
|
||||||
try {
|
try {
|
||||||
throwIfOffline();
|
throwIfOffline();
|
||||||
|
Loading…
Reference in New Issue
Block a user