Fix differentiated color for outgoing/incoming chat text color

This commit is contained in:
Christophe Deschamps 2023-12-12 18:13:05 +01:00
parent 66877b418d
commit d44f988d75

View file

@ -210,7 +210,7 @@ Loader{// Use of Loader because of Repeater (items cannot be loaded dynamically)
onLastTextSelectedChanged: mainItem.lastTextSelectedChanged(lastTextSelected)
color: mainItem.useTextColor
? mainItem.textColor
: $modelData.isOutgoing
: chatMessageModel.isOutgoing
? ChatStyle.entry.message.outgoing.text.colorModel.color
: ChatStyle.entry.message.incoming.text.colorModel.color
onRightClicked: mainItem.rightClicked()