Fix differentiated color for outgoing/incoming chat text color

(cherry picked from commit d44f988d75)
This commit is contained in:
Christophe Deschamps 2023-12-12 18:13:05 +01:00 committed by Julien Wadel
parent da7410fa57
commit b1ed74dfe6

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()