mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 00:52:43 +02:00
Device verification: Improve navigation flow and view states handling.
This commit is contained in:
+8
-1
@@ -76,6 +76,12 @@ final class DeviceVerificationIncomingViewController: UIViewController {
|
||||
self.viewModel.viewDelegate = self
|
||||
}
|
||||
|
||||
override func viewDidLayoutSubviews() {
|
||||
super.viewDidLayoutSubviews()
|
||||
|
||||
self.avatarImageView.layer.cornerRadius = avatarImageView.frame.size.width / 2
|
||||
}
|
||||
|
||||
override var preferredStatusBarStyle: UIStatusBarStyle {
|
||||
return self.theme.statusBarStyle
|
||||
}
|
||||
@@ -129,7 +135,6 @@ final class DeviceVerificationIncomingViewController: UIViewController {
|
||||
avatarImageView.enableInMemoryCache = true
|
||||
avatarImageView.setImageURI(self.viewModel.avatarUrl, withType: nil, andImageOrientation: .up, previewImage: defaultavatarImage, mediaManager: self.viewModel.mediaManager)
|
||||
|
||||
avatarImageView.layer.cornerRadius = avatarImageView.frame.size.width / 2
|
||||
avatarImageView.clipsToBounds = true
|
||||
}
|
||||
|
||||
@@ -175,6 +180,8 @@ final class DeviceVerificationIncomingViewController: UIViewController {
|
||||
self.errorPresenter.presentError(from: self, title: "", message: VectorL10n.deviceVerificationCancelledByMe(reason.humanReadable), animated: true) {
|
||||
self.viewModel.process(viewAction: .cancel)
|
||||
}
|
||||
} else {
|
||||
self.activityPresenter.removeCurrentActivityIndicator(animated: true)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user