Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MessageTheme.quotedTextStyle has no effect #5307

Closed
zeroarst opened this issue Jul 1, 2024 · 1 comment · Fixed by #5310
Closed

MessageTheme.quotedTextStyle has no effect #5307

zeroarst opened this issue Jul 1, 2024 · 1 comment · Fixed by #5310
Labels
bug Something isn't working

Comments

@zeroarst
Copy link

zeroarst commented Jul 1, 2024

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.
image

I look at the source code, I cannot find quotedTextStyle is used anywhere. Checked QuotedMessage, QuotedMessageContent, QuotedMessageText.

image

Expected behavior
Quoted text color is changed.

Device:

  • Vendor and model: Pixel 3a
  • Android version: 14
@zeroarst zeroarst added the bug Something isn't working label Jul 1, 2024
@aleksandar-apostolov
Copy link
Contributor

Hey @zeroarst thanks for the report, indeed its has no effect. We will fix this in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants