microsoftgraph / microsoft-graph-toolkit

Authentication Providers and UI components for Microsoft Graph 🦒
https://docs.microsoft.com/graph/toolkit/overview
Other
963 stars 309 forks source link

[FEATURE] As an mgt-chat user I want urls in my chat messages to render as links in the Teams client #3057

Open plasne opened 9 months ago

plasne commented 9 months ago

Describe the bug Sending a message containing a URL from mgt-chat will be received as a hyperlink in mgt-chat, but in Teams it will not be hyperlinked. Sending a message containing a URL from Teams will be received both in Teams and mgt-chat as a hyperlink.

To Reproduce Steps to reproduce the behavior:

  1. Send a message from mgt-chat.
  2. Look at the message in Teams.

Expected behavior URLs always appear as hyperlinks. This will likely require mgt-chat to encode the message as HTML, but that appears to be what Teams does.

Screenshots Showing mgt-chat (1st message originated from mgt-chat, 2nd message originated from Teams):

image

Showing Teams:

image

Environment (please complete the following information):

Additional context I am a FTE MSFT employee, you can reach me at pelasne if you need more info.

gavinbarron commented 9 months ago

I understand how this could be viewed as a bug, but given that the send box sends plain text and not HTML this is a significant feature request.

There are plans to have a rich text editor send box in the future, this user story may be resolved with that feature, otherwise we'll need to add logic to convert plain text to HTML including automatic linkification.