question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

User message styling lost when reconnecting to a conversation

See original GitHub issue

Please 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

HistoricMessagesAsBot

Expected HistoricMessagesAsUser

Steps to reproduce

  1. Open the web chat UI and send some messages
  2. Reconnect to the conversation above using a DirectLine token generated using the same conversation ID
  3. 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:closed
  • Created a year ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
stevkancommented, Jun 30, 2022

@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?

0reactions
DaveM77commented, Jul 27, 2022

@stevkan That’s great, it works for us. Thanks for your assistance with this.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found