From f9cde60a1d226d158c8c2bedd6bc938cf3732ace Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Fri, 23 Mar 2018 09:10:49 -0700 Subject: [PATCH] fix follow animation --- routes/_actions/follow.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routes/_actions/follow.js b/routes/_actions/follow.js index e50f811..1f7fb7c 100644 --- a/routes/_actions/follow.js +++ b/routes/_actions/follow.js @@ -14,6 +14,8 @@ export async function setAccountFollowed (accountId, follow, toastOnSuccess) { } else { account = await unfollowAccount(instanceName, accessToken, accountId) } + // TODO: hack to let the animation fully play + await new Promise(resolve => setTimeout(resolve, 400)) await updateProfileAndRelationship(accountId) let relationship = await database.getRelationship(instanceName, accountId) if (toastOnSuccess) {