diff --git a/Mastodon/Scene/Share/View/TableviewCell/UserTableViewCell+ViewModel.swift b/Mastodon/Scene/Share/View/TableviewCell/UserTableViewCell+ViewModel.swift index c96e203f0..6b8613292 100644 --- a/Mastodon/Scene/Share/View/TableviewCell/UserTableViewCell+ViewModel.swift +++ b/Mastodon/Scene/Share/View/TableviewCell/UserTableViewCell+ViewModel.swift @@ -111,6 +111,10 @@ extension UserTableViewCellDelegate where Self: NeedsDependency & AuthContextPro buttonState: state ) + // this is a dirty hack to give the backend enough time to process the relationship-change + // Otherwise the relationship might still be `pending` + try await Task.sleep(for: .seconds(1)) + let relationship = try await self.context.apiService.relationship(forAccounts: [account], authenticationBox: authContext.mastodonAuthenticationBox).value.first let isMe: Bool