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