Anyone know if there is a way to query the last n messages in a muc in xmpp (specifically ejabberd) without joining the room.
Thanks.
Anyone know if there is a way to query the last n messages in a muc in xmpp (specifically ejabberd) without joining the room.
Thanks.
No, not without modifications to the server software.
If you do actually join, you can specify the amount of history you want with the <history/>
element, see Managing Discussion History in XEP 45.
Messages are kept in each chat room process memory. You will have to modify the code to expose access to that data structure programmatically.