Hello,
I am a web developer having an experience of 5+ years in PHP, HTML, JavaScript.
I can help you to get latest chats details order by time with pagination.
I have done this type of project previously. I will show you demo if you want.
I will give you unlimited revisions if you are not happy.