Check for me (IOS-194)

This commit is contained in:
Nathan Mattes 2023-11-21 12:13:25 +01:00
parent 6cf5134ff6
commit f825198182
1 changed files with 3 additions and 1 deletions

View File

@ -120,8 +120,10 @@ extension DiscoveryForYouViewController: ProfileCardTableViewCellDelegate {
Task {
let newRelationship = try await DataSourceFacade.responseToUserFollowAction(dependency: self, user: account)
let isMe = (account.id == authContext.mastodonAuthenticationBox.userID)
await MainActor.run {
cell.profileCardView.updateButtonState(with: newRelationship, isMe: false)
cell.profileCardView.updateButtonState(with: newRelationship, isMe: isMe)
}
}
}