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

[BUG] [MGT-CHAT] Switching between chats and receiving messages can result in messages being in the wrong chat

Open plasne opened this issue 4 months ago • 0 comments

Describe the bug When receiving messages across multiple chats, those messages can get mixed up between the chats both in cache and on-screen.

This is different than https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/3031, though maybe related, because in this case, the cache starts stable for both chats and so the issue is not graph calls being received and processed incorrectly. Rather this might be a problem with how content is getting cached as it is received or loaded dynamically.   To Reproduce To reproduce, you need a way to switch between chats. You can use ChatList in PR.

Steps to reproduce the behavior:

  1. Switch to chat A in MGT
  2. Switch to chat B in MGT
  3. In Teams, send some messages to chat A and some to chat B
  4. Switch a few times between chat A and chat B in MGT
  5. Take note of the messages, there are likely some that are not in the right chat

NOTE: This is not 100% reproduceable, but is common enough.

Expected behavior Chat messages sent to chat A are only in chat A.

Screenshots This is a chat between Joni and Pradeep... image

Here is between Adele and Joni... image

Here is Joni and Pradeep in Teams... image

Environment (please complete the following information):

  • OS: macOS Monterey 12.7.3
  • Browser: edge
  • Framework: react
  • Context: Web
  • Version: v4
  • Provider: Msal2Provider

Additional context I am a MSFT employee and can be reached by Teams at pelasne.

plasne avatar Feb 09 '24 21:02 plasne