add requestAnimationFrame to socialgraph handleevent

This commit is contained in:
Martti Malmi
2024-01-08 14:44:44 +02:00
parent 5cae0ffeed
commit a20c8dbbf4

View File

@ -51,6 +51,7 @@ export default class SocialGraph {
if (event.kind !== 3) {
return;
}
requestAnimationFrame(() => {
try {
const author = ID(event.pubkey);
const timestamp = event.created_at;
@ -88,6 +89,7 @@ export default class SocialGraph {
} catch (e) {
// might not be logged in or sth
}
});
}
isFollowing(follower: HexKey, followedUser: HexKey): boolean {