Closed caiokawasaki closed 2 years ago
I got the status timestamps using the following method:
const ACK_DEVICE = 2
const ACK_READ = 3
const ACK_PLAYED = 4
const resolveStatusTimestamp = async message => {
const info = await message.getInfo()
switch (message.ack) {
case ACK_DEVICE:
return info['delivery'][0].t
case ACK_READ:
return info['read'][0].t
case ACK_PLAYED:
return info['played'][0].t
default:
return null
}
}
Reproduction steps
Steps to reproduce the behavior:
Expected behavior/Relevant code
I sent a message to a number, I noticed that the ack events are always coming with the same timestamp, is this correct?
Here are some events of the same message that were performed 1 minute apart:
Ack 1:
Ack 2:
Ack 3:
Shouldn't the timestamp of the events be different? It seems that for both acks I'm getting the timestamp of the message and not the event itself.
Environment
WhatsApp
Library
Other