deep-chat icon indicating copy to clipboard operation
deep-chat copied to clipboard

Strange avatar behaviour on consecutive message with `deep-chat-temporary-message`

Open michaelleungbowtie opened this issue 1 year ago • 2 comments

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?

michaelleungbowtie avatar Sep 05 '24 03:09 michaelleungbowtie

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 avatar Sep 07 '24 10:09 OvidijusParsiunas

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!

OvidijusParsiunas avatar Sep 13 '24 11:09 OvidijusParsiunas

The fix is now available in deep-chat and deep-chat-react version 2.1.1!

OvidijusParsiunas avatar Jan 08 '25 12:01 OvidijusParsiunas