Browse Source

mark overridden senders in quotes

if the original author of a quote is shown
and known to be overridden,
that should be marked with the character `~`
as for the normal names,
esp. as they are look very similar otherwise,
eg. also bold, also colored.
the missing `~` looks like a bug here.
B. Petersen 4 years ago
parent
commit
36d6b246d1

+ 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
                 }
                 }