Openfire Disconnection

When i am disconnect my internet connection of my phone and then when i am check to the openfier admin and check the users that time user is shown online, that’s why the message are lost. How i am fixe it. Any one help me.

Explanation: options to mitigate messages loss because of network problems