Function to fetch messages with bodies from MAM (#60)
In QA
Bartosz Małkowski opened 3 years ago

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.

Bartosz Małkowski commented 3 years ago

I implemented extension function for MAMModule.

Usage example:

mamModule.queryForMessages(expectedBodies = 200, with = "somebody@tigase.org", rsm = RSM.query { before() }) {
	consumer { forwardedMessage ->
          …
	}
	summary { rsm ->
		println("FINISHED!!! $rsm")
	}
}
Bartosz Małkowski commented 3 years ago

Updated library is here.

issue 1 of 1
Type
New Feature
Priority
Normal
Assignee
Issue Votes (0)
Watchers (0)
Reference
tigase/_libraries/halcyon#60
Please wait...
Page is in error, reload to recover