|
|
@ -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
|
|
|
|