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

[BUG] [MGT-CHAT] Creating a chat with an EXTERNAL user fails

Open plasne opened this issue 1 year ago • 3 comments

Describe the bug Creating a chat with an EXTERNAL user (ex. [email protected]) fails. This is kind of expected since the NewChat component says "search for a user" instead of expecting you to be able to type one. However, chats with EXTERNAL users (created in Teams) are supported.

Creating a chat with an INTERNAL user and an EXTERNAL user just ignores the EXTERNAL user.

To Reproduce Steps to reproduce the behavior:

  1. Click to create a new chat.
  2. Type in an external user's email.
  3. See error in console.

Expected behavior Ideally, we should be able to create any chat that we can participate in.

Screenshots Here I tried to create a chat with an EXTERNAL user:

image image

Sending a message on an existing chat with an EXTERNAL user is fine:

image

Environment (please complete the following information):

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

Additional context I am a MSFT FTE that can be reached in Teams at pelasne.

plasne avatar Feb 29 '24 16:02 plasne

@plasne This is not a supported scenario, we can't search for an external user that doesn't exist in the current user's tenant.

gavinbarron avatar Feb 29 '24 18:02 gavinbarron

Maybe, but 2 counterpoints:

  1. You can send them a message in MGT once the chat is created in Teams.
  2. Teams lets you create chat threads to them. You don't search, you just type in the address.

plasne avatar Feb 29 '24 18:02 plasne

Even if we don't fix it; maybe there should be some kind of error message to the user.

plasne avatar Feb 29 '24 18:02 plasne