1
0
mirror of https://github.com/mastodon/mastodon-ios.git synced 2025-01-31 17:45:17 +01:00

Update "about profile"-fields (#1290)

This commit is contained in:
Nathan Mattes 2024-06-12 14:49:23 +02:00
parent e5658cff63
commit b89671c78b

View File

@ -607,6 +607,7 @@ extension ProfileViewController {
{
viewModel.account = updatedAccount
viewModel.relationship = updatedRelationship
viewModel.profileAboutViewModel.fields = updatedAccount.mastodonFields
}
if let updatedMe = try? await context.apiService.authenticatedUserInfo(authenticationBox: authContext.mastodonAuthenticationBox).value {
@ -761,6 +762,7 @@ extension ProfileViewController: ProfileHeaderViewControllerDelegate {
self.profileHeaderViewController.viewModel.isEditing = false
profileAboutViewModel.isEditing = false
self.viewModel.account = updatedAccount
self.viewModel.profileAboutViewModel.fields = updatedAccount.mastodonFields
} catch {
let alertController = UIAlertController(