5

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.

Mickaël Rémond
  • 9,035
  • 1
  • 24
  • 44
fturtle
  • 365
  • 1
  • 5
  • 17

2 Answers2

1

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.

Zash
  • 1,636
  • 9
  • 12
0

Messages are kept in each chat room process memory. You will have to modify the code to expose access to that data structure programmatically.

Mickaël Rémond
  • 9,035
  • 1
  • 24
  • 44