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

Stop the refresh control when update is complete.

Fixes IOS-348
This commit is contained in:
shannon 2024-12-11 16:03:43 -05:00
parent 386196158b
commit 957c1da6d0

View File

@ -167,6 +167,12 @@ class ProfileViewController: UIViewController, MediaPreviewableViewController, A
guard isViewLoaded else { return }
// TODO: careful about resetting things if we failed to push edits
if !viewModel.state.isUpdating {
if refreshControl.isRefreshing {
refreshControl.endRefreshing()
}
}
// Bridge to the old way of doing things until we replace the UI sometime in the future
updateHeader(viewModel)
updateAboutView(viewModel)