User message styling lost when reconnecting to a conversation
See original GitHub issuePlease view our Technical Support Guide before filing a new issue.
Version
botframework-webchat NPM package version 4.15.2 Microsoft.Bot.Connector.DirectLine .NET assembly version 3.0.2.0
Describe the bug
We have created a chatbot based on the React web chat component as per the sample 06.recomposing-ui/a.minimizable-web-chat that obtains tokens from a token service that uses the DirectLineClient from Microsoft.Bot.Connector.DirectLine to provide a token. When reconnecting the web chat UI to an existing conversation by using a token generated by passing a conversation ID to the DirectLineClient, all old messages are styled as being from the bot even if they are user messages, eg
Expected
Steps to reproduce
- Open the web chat UI and send some messages
- Reconnect to the conversation above using a DirectLine token generated using the same conversation ID
- Scroll up to old user messages
Expected behavior
Historic user messages should retain the user message styling specified in the StyleSet passed to the ReactWebChat component.
Additional context
[Bug]
Issue Analytics
- State:
- Created a year ago
- Comments:10
Top Results From Across the Web
Solved: Is it possible to reconnect the user to a conversa...
Hi There! Using Power Virtual Agents, is possible to reconnect the user to a conversation, retaining both the context and previous chat history?...
Read more >Reconnect issue when hiding and showing React WebChat ...
When Web Chat dismounts, it triggers the DIRECT_LINE/DISCONNECT action to fire which causes DirectLine to disconnect.
Read more >Conversation starters for reconnecting with an old friend
We know talking to an old friend after a long time feels overwhelming, and a lot of people want to reconnect but it...
Read more >Best 10 Examples And Guidelines For Error Messages
Here are ten basic guidelines to help you create the most effective error messaging for your users. Click here to see all of...
Read more >47 Pro Tips on How to Talk to Customers - Help Scout
Have more successful conversations and improve your customer support ... you're missing an opportunity to use the psychology of consumer ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@DaveM77 - Thank you for your patience. I haven’t seen the email come through. Perhaps the file size is too big? Are you able to zip the project (minus any keys/secrets) and attach it here?
@stevkan That’s great, it works for us. Thanks for your assistance with this.