fix: disallow header preview when editing profile
This commit is contained in:
parent
2fd10eab84
commit
4b96ac4481
|
@ -680,6 +680,9 @@ extension ProfileViewController: ProfileHeaderViewDelegate {
|
|||
}
|
||||
|
||||
func profileHeaderView(_ profileHeaderView: ProfileHeaderView, bannerImageViewDidPressed imageView: UIImageView) {
|
||||
// not preview header banner when editing
|
||||
guard !viewModel.isEditing.value else { return }
|
||||
|
||||
guard let mastodonUser = viewModel.mastodonUser.value else { return }
|
||||
guard let header = imageView.image else { return }
|
||||
|
||||
|
|
Loading…
Reference in New Issue