microsoft-graph-toolkit icon indicating copy to clipboard operation
microsoft-graph-toolkit copied to clipboard

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

Open plasne opened this issue 4 months ago • 1 comments

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):

  • OS: macOS Monterey 12.7.3
  • Browser: Edge
  • Framework: React
  • Context: Web + Teams
  • Version: MGT 4
  • Provider: Msal2Provider

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

plasne avatar Feb 20 '24 18:02 plasne

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.

gavinbarron avatar Feb 22 '24 17:02 gavinbarron