You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can retrieve previous messages from a lobby using the [`Client::GetLobbyMessagesWithLimit`] function. This allows you to fetch chat history for display when users join a lobby or need to see previous conversations.
158
+
159
+
The function takes a lobby ID and a limit parameter to specify how many recent messages to retrieve.
160
+
161
+
**Important limitations:**
162
+
- Only a maximum of 200 messages and up to 72 hours of history can be retrieved
163
+
- Only messages from lobbies the user is currently a member of can be retrieved
164
+
165
+
```cpp
166
+
constuint64_t lobbyId = 01234567890;
167
+
constuint32_t messageLimit = 50; // Number of recent messages to retrieve (max 200)
0 commit comments