Function to fetch messages with bodies from MAM (#60)
Bartosz Małkowski opened 4 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 4 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 4 years ago

    Updated library is here.

  • Wojciech Kapcia (Tigase) added to iteration "1.0.0" 2 weeks ago
  • Wojciech Kapcia (Tigase) commented 2 weeks ago

    tigase.halcyon.core.xmpp.modules.mam.QueryForMessagesKt#queryForMessages

  • Wojciech Kapcia (Tigase) changed state to 'Closed' 2 weeks ago
    Previous Value Current Value
    In QA
    Closed
issue 1 of 1
Type
New Feature
Priority
Normal
Assignee
Iterations
Issue Votes (0)
Watchers (2)
Reference
tigase/_libraries/halcyon#60
Please wait...
Page is in error, reload to recover