Open mohdsafadsaal opened 3 years ago
Are you using the 203 extension?
https://github.com/robbiehanson/XMPPFramework/tree/master/Extensions/XEP-0203
You should create your date object as below:
let date = message.delayedDeliveryDate ?? Date()
If a message that is sent to an offline entity and stored for later delivery, then the delayedDeliveryDate will be set. Otherwise, nil. Therefore, you need to use the current date.
Hi,
I integrated XMPP framework. i was trying to read timestamp from XMPPMessage object.
i tried to get it from message.delayedDeliveryDate and message.delayedDeliveryFrom both are coming nil.