microsoft-graph-toolkit
microsoft-graph-toolkit copied to clipboard
[BUG] [MGT-CHAT] Chat can miss messages before subscription connects
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:
- Open a Chat.
- See all messages load in.
- Send a message in Teams.
- Observe you don't get the message.
- Wait 30 seconds.
- Send another message.
- See that it is received.
Expected behavior All messages sent should be received.
Screenshots
Here are messages in Teams...
Notice that "receiving" was never received by the client...
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.