Skip to content

Commit

Permalink
Show background for quoted messages (with stickers) (#2285)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitschlag committed Sep 9, 2024
1 parent 66400fc commit 4ea954a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions deltachat-ios/Chat/ChatViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1743,9 +1743,8 @@ class ChatViewController: UITableViewController, UITableViewDropDelegate {
let msg = draft.draftMsg ?? dcContext.newMessage(viewType: viewType)
msg.setFile(filepath: filePath)
msg.text = (message ?? "").isEmpty ? nil : message
if quoteMessage != nil {
msg.quoteMessage = quoteMessage
}
msg.quoteMessage = quoteMessage

dcContext.sendMessage(chatId: self.chatId, message: msg)
}

Expand Down
2 changes: 1 addition & 1 deletion deltachat-ios/Chat/Views/Cells/ImageTextCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class ImageTextCell: BaseMessageCell {
showBottomLabelBackground = !msg.hasHtml && hasEmptyText
mainContentView.spacing = msg.text?.isEmpty ?? false ? 0 : 6
topCompactView = msg.quoteText == nil ? true : false
isTransparent = msg.type == DC_MSG_STICKER
isTransparent = (msg.type == DC_MSG_STICKER && msg.quoteMessage == nil)
topLabel.isHidden = msg.type == DC_MSG_STICKER
contentImageIsPlaceholder = true
tag = msg.id
Expand Down

0 comments on commit 4ea954a

Please sign in to comment.