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 1 year ago • 5 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

Hello @tomorgan, thank you for trying out MGT chat component. This component is currently in maintenance mode without significant updates lately. I will try and reproduce this during the week though.

musale avatar Aug 05 '24 12:08 musale

@musale what's the status of mgt-chat lib? Will it be abandoned? Also, can you recommend any alternative lib?

AndreMaz avatar Aug 21 '24 14:08 AndreMaz

@musale @Mnickii Do you have any updates ? I met the same issue. There's no functionHost and appid in brokersettings. I used the latest version "@microsoft/mgt-chat": "4.0.0-next.mgt-chat.8627a91",

Image

LiangcuiZhang avatar Mar 31 '25 03:03 LiangcuiZhang

@musale @Mnickii will this component be merged to main in the following weeks/months or will it be abandoned?

@carlos-guilherme-araujo-alb sorry for the late response. This component will not be merged to main. The team is reduced on this so the toolkit was put in maintainance mode.

musale avatar Apr 15 '25 05:04 musale