Name colors improvements

This commit is contained in:
Ilya Laktyushin
2023-10-26 14:46:48 +04:00
parent 44e737d837
commit 4432135259
10 changed files with 40 additions and 28 deletions

View File

@@ -385,7 +385,7 @@ public class ChatMessageTextBubbleContentNode: ChatMessageBubbleContentNode {
var secondaryColor: UIColor? = nil
var tertiaryColor: UIColor? = nil
let nameColors = author?.nameColor.flatMap { item.context.peerNameColors.get($0) }
let nameColors = author?.nameColor.flatMap { item.context.peerNameColors.get($0, dark: item.presentationData.theme.theme.overallDarkAppearance) }
if !incoming {
mainColor = messageTheme.accentTextColor
if let _ = nameColors?.secondary {