Why are messages suddenly limited to 6 per thread?

Olof Landahl 0 Reputation points
2024-05-15T11:52:00.7266667+00:00

I'm using the ChatComposite component to display a chat thread. A backend create threads, add users and some custom messages. Everything is working fine, it's possible to add messages, edit, remove, and so on. Suddenly all threads show only the 6 latest messages, even when the page is reloaded. I can see all messages are included in the REST API /messages response (done by the ChatComposite component) but it seems the WebSocket data is limited to 6 messages.
This happens when running on localhost. In a public dev environment (using the same ACS instance) all messages are still displayed.

Is there some kind of rate limit that kicks in? We're not even close to hit the service limits for the chat (https://learn.microsoft.com/en-us/azure/communication-services/concepts/service-limits#chat)

We use beta versions to get some features that are missing in the latest offical releases:
"@azure/communication-chat": "^1.5.0-beta.1",
"@azure/communication-react": "^1.15.0-beta.2",

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
928 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.