fix follow animation
This commit is contained in:
		
							parent
							
								
									882a288326
								
							
						
					
					
						commit
						f9cde60a1d
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue