How to troubleshoot issues with retrieving specific message content when joining a chatroom

Issue description

When joining a chatroom, use the messageCount parameter in the API to control how many history messages are retrieved. If the content doesn’t match expectations, follow these steps to troubleshoot.

Troubleshooting steps

  1. Check the API parameters. The messageCount range is 1 to 50. Use -1 to retrieve no history messages, or 0 to use the SDK’s default setting (10 messages).

  2. In the RC Console, ensure the Message filtering on join switch is on. If a fixed message type is set, the client can only retrieve messages of that type via the API: