Abort view transitions on failure.
This commit is contained in:
parent
fff3a90041
commit
a014aaafd3
@ -95,7 +95,7 @@ extension MediaDismissAnimationController: UIViewControllerAnimatedTransitioning
|
||||
|
||||
guard let presentationImage = galleryItem.attachmentStream.originalImage else {
|
||||
owsFailDebug("presentationImage was unexpectedly nil")
|
||||
transitionContext.completeTransition(true)
|
||||
transitionContext.completeTransition(false)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@ -76,7 +76,7 @@ extension MediaZoomAnimationController: UIViewControllerAnimatedTransitioning {
|
||||
|
||||
guard let presentationImage = galleryItem.attachmentStream.originalImage else {
|
||||
owsFailDebug("presentationImage was unexpectedly nil")
|
||||
transitionContext.completeTransition(true)
|
||||
transitionContext.completeTransition(false)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user