Respond to CR.

pull/1/head
Matthew Chen 7 years ago
parent 34b4ea377f
commit b475695f54

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

Loading…
Cancel
Save