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:
parent
e5658cff63
commit
b89671c78b
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user