When a user sends a message in the chatroom, the server sends a retrieval notification to all users. The client SDK compares the notification with the latest message in the local chatroom to determine if retrieval is needed. If so, it retrieves the latest messages from the server, excluding the user’s own messages, as the RC server handles filtering.
When a user exits and re-enters the chatroom, the system retrieves the last 50 chatroom history messages by default. If the user previously sent messages within these 50, the server doesn’t filter them and delivers all to the user.