Browse Source

Merge pull request #1357 from deltachat/overlapping_download_btn

don't show compact (image) message view if message has html
cyBerta 3 năm trước cách đây
mục cha
commit
3257feccb1
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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