mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
chore: remove null status from not fromMe msgs
This commit is contained in:
@@ -69,8 +69,11 @@ export const decodeMessageStanza = async(stanza: BinaryNode, auth: Authenticatio
|
|||||||
const fullMessage: proto.IWebMessageInfo = {
|
const fullMessage: proto.IWebMessageInfo = {
|
||||||
key,
|
key,
|
||||||
messageTimestamp: +stanza.attrs.t,
|
messageTimestamp: +stanza.attrs.t,
|
||||||
pushName: pushname,
|
pushName: pushname
|
||||||
status: key.fromMe ? proto.WebMessageInfo.WebMessageInfoStatus.SERVER_ACK : null,
|
}
|
||||||
|
|
||||||
|
if(key.fromMe) {
|
||||||
|
fullMessage.status = proto.WebMessageInfo.WebMessageInfoStatus.SERVER_ACK
|
||||||
}
|
}
|
||||||
|
|
||||||
if(Array.isArray(stanza.content)) {
|
if(Array.isArray(stanza.content)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user