I have enabled a mod_archive module to save all the chats in my ejabberd chat implementation. Now all the messages are getting saved in mysql database. But every message is getting saved twice in the archive table of ejabberd database.
I am not sure why there are 2 entries getting saved in archive table.
I think that one entry is saved at the time when server receives a message from the sender and the second entry is saved when server dispatches the messages to the recipient. Am I right?
There is two entries because you have the archive of the sender and the archive of the receiver. They are managed independantly because: