From 09a936416346c7270062169130772f33052496b4 Mon Sep 17 00:00:00 2001 From: Kieran Date: Wed, 11 Oct 2023 09:40:54 +0100 Subject: [PATCH] fix: follow button response --- packages/app/src/Element/User/FollowButton.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/app/src/Element/User/FollowButton.tsx b/packages/app/src/Element/User/FollowButton.tsx index 89c7059a..3de65153 100644 --- a/packages/app/src/Element/User/FollowButton.tsx +++ b/packages/app/src/Element/User/FollowButton.tsx @@ -24,8 +24,8 @@ export default function FollowButton(props: FollowButtonProps) { async function follow(pubkey: HexKey) { if (publisher) { const ev = await publisher.contactList([pubkey, ...follows.item], relays.item); - await FollowsFeed.backFill(System, [pubkey]); System.BroadcastEvent(ev); + await FollowsFeed.backFill(System, [pubkey]); } } @@ -43,9 +43,9 @@ export default function FollowButton(props: FollowButtonProps) { { + onClick={async e => { e.stopPropagation(); - isFollowing ? unfollow(pubkey) : follow(pubkey); + await (isFollowing ? unfollow(pubkey) : follow(pubkey)) }}> {isFollowing ? : }