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

[BUG] - Chat Component does not receive chat messages, no /subsriptions requests made

Open tomorgan opened this issue 6 months ago • 2 comments

Describe the bug The MGTK Chat Component as deployed and configured according to https://learn.microsoft.com/en-us/graph/toolkit/components/chat renders and displays the current state of a conversation. However any new messages sent or received are not shown in the component. I suspect that the subscriptions for new messages is not being set up correctly. No POST requests to /subscriptions are seen. No obvious errors in Console. Reproduced against sample here: https://github.com/microsoftgraph/microsoft-graph-toolkit/tree/next%2Fmgt-chat/samples%2Freact-chat

To Reproduce Steps to reproduce the behavior:

  1. Add component to project
  2. Select a user to load/start a chat session. For existing chat sessions, the conversation will be shown.
  3. Have the user not using the component send you a message (using the Teams client, for instance)
  4. The new message is not shown in the component

Video repo that shows no calls made to /subscriptions: https://youtu.be/gS-gFwArOQg

Expected behavior Messages sent and received in the chat over time should be displayed in the component.

Screenshots Video repo that shows no calls made to /subscriptions: https://youtu.be/gS-gFwArOQg

Environment (please complete the following information):

  • OS: Windows 11
  • Browser: Edge
  • Framework: React
  • Context: Web / Microsoft Teams
  • Version [e.g. 0.1]: @microsoft/[email protected]
  • M365 / Azure Region: UK

tomorgan avatar Aug 01 '24 13:08 tomorgan