I have Ejabberd server and mobile iOS/Android apps.
I want to build a simple Chat app with something like 2 screens:
- List of chats
- Screen with messages of particular chat
I have an issue with the List of chats implementation. I use XEP-0313: Message Archive Management to store chat history and it suites very well for my 2nd screen - screen with messages of particular chat.
But I can't find a proper way to show a list of chats
I have an idea to merge all user's contacts (roster) + group rooms and then show, but users do not have active chats with all their contacts so this is not a right solution.
It's also good to show a last message text along with each chat on a list of chats screen. So this is a pretty standard feature in all modern messengers.
Is it possible to do with any XEPs? or maybe I can use a Message Archive XEP in some way
Some thoughts here Get last message of each conversation with XEP-0313?, but still no answer