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