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

Strange avatar behaviour on consecutive message with deep-chat-temporary-message #258

Open
michaelleungbowtie opened this issue Sep 5, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@michaelleungbowtie
Copy link

michaelleungbowtie commented Sep 5, 2024

I am following Suggestion button examples to better onboard my user by giving examples to them.

See this minimum reproducible snippet: https://codesandbox.io/p/sandbox/deep-chat-reat-jmrnyl?file=%2Fsrc%2FApp.js%3A17%2C14

  1. Notice the avatar is visible only in last consecutive message, i.e. the one with suggestion buttons
  2. Click on either of the suggestion
  3. The suggestion buttons message is gone because it is set as temporary
  4. Notice the first How can I help you today? message stay without any avatar
image

Is it right for me to expect the How can I help you today? message should have an avatar after the temporary message below it is gone?

@OvidijusParsiunas
Copy link
Owner

Hi @michaelleungbowtie.

That is a conundrum 😕 I'll try to investigate and see if I can find a way to place the avatar in the previous message. Thankyou for letting me know about this.

@OvidijusParsiunas OvidijusParsiunas self-assigned this Sep 7, 2024
@OvidijusParsiunas OvidijusParsiunas added the bug Something isn't working label Sep 7, 2024
@OvidijusParsiunas
Copy link
Owner

Hi @michaelleungbowtie.

I have made the fix for this bug and it is now available in deep-chat-dev and deep-chat-react-dev version 9.0.190.

I will push this change in the next release. Let me know if you face any issues with it.

Thanks!

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
Development

No branches or pull requests

2 participants