MessageTheme.quotedTextStyle has no effect
Describe the bug A clear and concise description of what the bug is.
SDK version
- 6.4.0
To Reproduce Set the quoteTextStyle as below:
ChatTheme(
ownMessageTheme = MessageTheme.defaultOwnTheme().let { theme ->
theme.copy(
backgroundColor = Color(0xff343F93),
textStyle = theme.textStyle.copy(
color = Color.Red
),
quotedBackgroundColor = Color.White,
quotedTextStyle = theme.quotedTextStyle.copy(
color = Color.Green // This has no effect.
),
)
},
) {
// Stream components.
}
)
Does not apply the color to quoted text. With above example, the quoted text should show green text color.
I look at the source code, I cannot find quotedTextStyle is used anywhere. Checked QuotedMessage, QuotedMessageContent, QuotedMessageText.
Expected behavior Quoted text color is changed.
Device:
- Vendor and model: Pixel 3a
- Android version: 14
Hey @zeroarst thanks for the report, indeed its has no effect. We will fix this in the next release.
I tried the latest version (6.4.4) and the issue still persists. ChatTheme.ownMessageTheme.quotedTextStyle is correctly passed to the Text compose, but the color seems to be ovewritten by styledText: AnnotatedString color. As you can see from below's screenhot.
style has green color;
styledText has a red color SpanStyle;
Hey @zeroarst,
Thank you letting us know. We'll address this issue asap.
Fixed in v6.5.0