Reputation: 375
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.
Upvotes: 5
Views: 3054
Reputation: 9055
Messages are kept in each chat room process memory. You will have to modify the code to expose access to that data structure programmatically.
Upvotes: 0
Reputation: 1626
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.
Upvotes: 1