I have a problem, an array with messages is sent to me via the API, and I want the first 20 messages to be displayed. But when the user scrolls up, new messages are loaded. How