Implement help function to fetch N messages with bodies before given message.
When messages are fetched from MAM, many messages are without body. This function should automatically repeat fetching messages from MAM to achieve N messages with bodies.
I implemented extension function for MAMModule.
MAMModule
Usage example:
mamModule.queryForMessages(expectedBodies = 200, with = "somebody@tigase.org", rsm = RSM.query { before() }) { consumer { forwardedMessage -> … } summary { rsm -> println("FINISHED!!! $rsm") } }
Updated library is here.
Implement help function to fetch N messages with bodies before given message.
When messages are fetched from MAM, many messages are without body. This function should automatically repeat fetching messages from MAM to achieve N messages with bodies.