|
|
@ -167,7 +167,7 @@ final class QuoteView : UIView {
|
|
|
|
if !hasAttachments {
|
|
|
|
if !hasAttachments {
|
|
|
|
mainStackView.addArrangedSubview(lineView)
|
|
|
|
mainStackView.addArrangedSubview(lineView)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
let isAudio = MIMETypeUtil.isAudio(attachments.first!.contentType!)
|
|
|
|
let isAudio = MIMETypeUtil.isAudio(attachments.first!.contentType ?? "")
|
|
|
|
let fallbackImageName = isAudio ? "attachment_audio" : "actionsheet_document_black"
|
|
|
|
let fallbackImageName = isAudio ? "attachment_audio" : "actionsheet_document_black"
|
|
|
|
let fallbackImage = UIImage(named: fallbackImageName)?.withTint(.white)?.resizedImage(to: CGSize(width: iconSize, height: iconSize))
|
|
|
|
let fallbackImage = UIImage(named: fallbackImageName)?.withTint(.white)?.resizedImage(to: CGSize(width: iconSize, height: iconSize))
|
|
|
|
let imageView = UIImageView(image: thumbnail ?? fallbackImage)
|
|
|
|
let imageView = UIImageView(image: thumbnail ?? fallbackImage)
|
|
|
|