瀏覽代碼

Merge pull request #1357 from deltachat/overlapping_download_btn

don't show compact (image) message view if message has html
cyBerta 3 年之前
父節點
當前提交
3257feccb1
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      deltachat-ios/Chat/Views/Cells/ImageTextCell.swift

+ 2 - 1
deltachat-ios/Chat/Views/Cells/ImageTextCell.swift

@@ -44,7 +44,8 @@ class ImageTextCell: BaseMessageCell {
 
     override func update(dcContext: DcContext, msg: DcMsg, messageStyle: UIRectCorner, showAvatar: Bool, showName: Bool) {
         messageLabel.text = msg.text
-        bottomCompactView = msg.type != DC_MSG_STICKER && msg.text?.isEmpty ?? true
+        let hasEmptyText = msg.text?.isEmpty ?? true
+        bottomCompactView = msg.type != DC_MSG_STICKER && !msg.hasHtml && hasEmptyText
         mainContentView.spacing = msg.text?.isEmpty ?? false ? 0 : 6
         topCompactView = msg.quoteText == nil ? true : false
         isTransparent = msg.type == DC_MSG_STICKER