In openfire how to get one-one message history

In openfire I have implemented MUC and I can able to get both history and real time data but I can able to get one to one message in real time if another users sends but not history. So, how to show both MUC and one - one messages in chatlist based on last update time like how it works in whatsapp containing both MUC and one-one message in application. I am able to fetch muc with history but how to get one-one message with history and sort using library like strophejs.

For this purpose, you likely want to make use of the Message Archive Management functionality as is implemented by the Openfire plugin called ‘Monitoring’.