|
|
|
@ -262,7 +262,7 @@ public class ConversationMediaView: UIView {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private func isFailedDownload() -> Bool {
|
|
|
|
private var isFailedDownload: Bool {
|
|
|
|
guard let attachmentPointer = attachment as? TSAttachmentPointer else {
|
|
|
|
guard let attachmentPointer = attachment as? TSAttachmentPointer else {
|
|
|
|
return false
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -272,7 +272,7 @@ public class ConversationMediaView: UIView {
|
|
|
|
private func configureForMissingOrInvalid() {
|
|
|
|
private func configureForMissingOrInvalid() {
|
|
|
|
backgroundColor = UIColor.ows_gray05
|
|
|
|
backgroundColor = UIColor.ows_gray05
|
|
|
|
let icon: UIImage
|
|
|
|
let icon: UIImage
|
|
|
|
if isFailedDownload() {
|
|
|
|
if isFailedDownload {
|
|
|
|
guard let asset = UIImage(named: "media_retry") else {
|
|
|
|
guard let asset = UIImage(named: "media_retry") else {
|
|
|
|
owsFailDebug("Missing image")
|
|
|
|
owsFailDebug("Missing image")
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|