Respond to CR.

pull/1/head
Matthew Chen 6 years ago
parent 962c1acc9f
commit 21ab3fbbcb

@ -214,11 +214,15 @@ public class ConversationMediaView: UIView {
loadBlock = { [weak self] in loadBlock = { [weak self] in
AssertIsOnMainThread() AssertIsOnMainThread()
guard let strongSelf = self else {
return
}
if animatedImageView.image != nil { if animatedImageView.image != nil {
owsFailDebug("Unexpectedly already loaded.") owsFailDebug("Unexpectedly already loaded.")
return return
} }
self?.tryToLoadMedia(loadMediaBlock: { () -> AnyObject? in strongSelf.tryToLoadMedia(loadMediaBlock: { () -> AnyObject? in
guard attachmentStream.isValidImage else { guard attachmentStream.isValidImage else {
owsFailDebug("Ignoring invalid attachment.") owsFailDebug("Ignoring invalid attachment.")
return nil return nil

Loading…
Cancel
Save