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:
parent
386196158b
commit
957c1da6d0
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user