mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Respond to CR.
This commit is contained in:
parent
962c1acc9f
commit
21ab3fbbcb
|
@ -214,11 +214,15 @@ public class ConversationMediaView: UIView {
|
|||
loadBlock = { [weak self] in
|
||||
AssertIsOnMainThread()
|
||||
|
||||
guard let strongSelf = self else {
|
||||
return
|
||||
}
|
||||
|
||||
if animatedImageView.image != nil {
|
||||
owsFailDebug("Unexpectedly already loaded.")
|
||||
return
|
||||
}
|
||||
self?.tryToLoadMedia(loadMediaBlock: { () -> AnyObject? in
|
||||
strongSelf.tryToLoadMedia(loadMediaBlock: { () -> AnyObject? in
|
||||
guard attachmentStream.isValidImage else {
|
||||
owsFailDebug("Ignoring invalid attachment.")
|
||||
return nil
|
||||
|
|
Loading…
Reference in a new issue