add requestAnimationFrame to socialgraph handleevent
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user