Conversations are saved only if “Archiving conversation status” is enabled in the section “Server → Archiving → Archiving options in the Openfire admin console” and “Message archiving” is enabled for “One-on-one message archiving” and / or “Archived group chats'. After this, messages are stored in the MySQL database table 'ofMessageArchive'.
This table contains a step-by-step updated “conversation identifier”, UNIX timestamp, and JID of the conversation participants.
Hope this helps!
Radix source share