2
2
mirror of https://github.com/mastodon/mastodon-ios synced 2025-04-11 22:58:02 +02:00

Check for me (IOS-194)

This commit is contained in:
Nathan Mattes 2023-11-21 12:13:25 +01:00
parent 6cf5134ff6
commit f825198182

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)
}
}
}