powered by Jive Software

Retrieve the timestamp for offline and Archived messages


#1

am using Smack version 4.3 and I would like to get the timestamp for messages. I have checked the Message class and it contains no clue about time. Not being XMPP expert myself and having read almost everything I could find, am at loss as to how do I retrieve the timestamp for offline messages and MAM archived messages.

Any pointer or help is appreciated.
TIA


#2

From XEP-0313 § 4.2:

The <result/> element contains a <forwarded/> element which SHOULD contain the original message as it was received, and SHOULD also contain a <delay/> element qualified by the ‘urn:xmpp:delay’ namespace specified in Delayed Delivery (XEP-0203) [9]. The value of the ‘stamp’ attribute MUST be the time the message was originally received by the forwarding entity.