When a user is trying to surf through the available pages in Direct Messages Modal, when clicked on next button the API call is directly happening from page no 2 which is resulting in missing of users which are available in page 1. Please check the screenshot for reference. It's happening in prerelease version of mattermost
Pagination should start on page 1.
Pagination is starting on page 2
Fixing the starting index of pagination can before calling the API call will fix the issue.
PS: The issue is being addressed in a PR, which is related to Direct Messages --> https://github.com/mattermost/mattermost-webapp/pull/1855
Video Url --> https://drive.google.com/file/d/1CRFupV8lwHkU_Myh6fabep7ec5X48vi1/view?usp=sharing

Hi @JayaKrishnaNamburu, I see that there is discussion on this in the PR, so I'll create a Jira ticket if a decision is made that this issue will be fixed in a separate PR.
Hi @amyblais while working in that PR I fixed this issue as well, just created one thinking it might help for reference