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

[BUG] [MGT-CHAT] Chat can miss messages before subscription connects

Open plasne opened this issue 3 months ago • 0 comments

Describe the bug There are several seconds after opening a Chat that you will not receive incoming messages. This is particularly relevant when considering ChatList where you can switch between Chats and expect to see all messages.

ChatList addresses this by loading the messages AFTER the subscription and websocket connection is obtained.

To Reproduce Steps to reproduce the behavior:

  1. Open a Chat.
  2. See all messages load in.
  3. Send a message in Teams.
  4. Observe you don't get the message.
  5. Wait 30 seconds.
  6. Send another message.
  7. See that it is received.

Expected behavior All messages sent should be received.

Screenshots Here are messages in Teams... image

Notice that "receiving" was never received by the client... 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 and can be reached on Teams at pelasne.

plasne avatar Mar 08 '24 14:03 plasne