Эх сурвалжийг харах

Merge pull request #1072 from deltachat/mark-overrided-sender-in-quotes

mark overridden senders in quotes
cyBerta 4 жил өмнө
parent
commit
563f11ce3c

+ 1 - 1
deltachat-ios/Chat/Views/Cells/BaseMessageCell.swift

@@ -329,7 +329,7 @@ public class BaseMessageCell: UITableViewCell {
                     quoteView.citeBar.backgroundColor = DcColors.grayDateColor
                     quoteView.citeBar.backgroundColor = DcColors.grayDateColor
                 } else {
                 } else {
                     let contact = quoteMsg.fromContact
                     let contact = quoteMsg.fromContact
-                    quoteView.senderTitle.text = quoteMsg.getSenderName(contact)
+                    quoteView.senderTitle.text = quoteMsg.getSenderName(contact, markOverride: true)
                     quoteView.senderTitle.textColor = contact.color
                     quoteView.senderTitle.textColor = contact.color
                     quoteView.citeBar.backgroundColor = contact.color
                     quoteView.citeBar.backgroundColor = contact.color
                 }
                 }

+ 1 - 1
deltachat-ios/Chat/Views/QuotePreview.swift

@@ -40,7 +40,7 @@ public class QuotePreview: DraftPreview {
                     quoteView.citeBar.backgroundColor = DcColors.grayDateColor
                     quoteView.citeBar.backgroundColor = DcColors.grayDateColor
                 } else {
                 } else {
                     let contact = quoteMessage.fromContact
                     let contact = quoteMessage.fromContact
-                    quoteView.senderTitle.text = quoteMessage.getSenderName(contact)
+                    quoteView.senderTitle.text = quoteMessage.getSenderName(contact, markOverride: true)
                     quoteView.senderTitle.textColor = contact.color
                     quoteView.senderTitle.textColor = contact.color
                     quoteView.citeBar.backgroundColor = contact.color
                     quoteView.citeBar.backgroundColor = contact.color
                 }
                 }