Offline messages not getting deleted

I have the following scenario:

1 User1 is offfline

2 User2 messages User1

3 User1 comes online. Checks the message and sends

4 User1 goes offline

5 User1 comes online

6 User1 gets the same message again

The interesting part: The above OpenFire instance is using an external MySql database. Its ofOffline table is getting updated as expected (message is removed after step 3).

Please tell me what am I missing ?

Bump… Any help please.