Project

General

Profile

in client side,how to get the message send time

jeff shaw
Added over 2 years ago

Can any body help me to know how to get the send time from message element,or other place? thanks a lot.


Replies (5)

Added by Wojciech Kapcia TigaseTeam over 2 years ago

jeff shaw wrote:

Can any body help me to know how to get the send time from message element,or other place? thanks a lot.

Normally the message would be delivered immediately. However, if it was stored to offline store it will contain a <delay/> element within the stanza.

Normally clients don't stamp outgoing messages with the current timestamp.

Added by jeff shaw over 2 years ago

thank you ,I have an other question: how to reload history message ?

Added by Wojciech Kapcia TigaseTeam over 2 years ago

What "history message"? There are various archiving options in Tigase. If you are referring to XEP-0136: Message Archiving please refer to the specification of how to retrieve messages from the server.

Added by jeff shaw over 2 years ago

sorry,my mean is how to request those already readed messages.

Added by Wojciech Kapcia TigaseTeam over 2 years ago

If you haven't used Message Archiving component then the server doesn't store those messages - it simply receives and then delivers them to the addressee. If you are using Archiving component then you should peruse above specification, which contains all details how to retrieve conversations from the archive.

    (1-5/5)