From 67f3ddeaff1bbf7f4100eefe85d6e879582962f7 Mon Sep 17 00:00:00 2001 From: Adhiraj Singh Date: Fri, 7 Jan 2022 21:24:29 +0530 Subject: [PATCH] chore: remove null status from not fromMe msgs --- src/Utils/decode-wa-message.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Utils/decode-wa-message.ts b/src/Utils/decode-wa-message.ts index ee4a5a1..083d3ee 100644 --- a/src/Utils/decode-wa-message.ts +++ b/src/Utils/decode-wa-message.ts @@ -69,8 +69,11 @@ export const decodeMessageStanza = async(stanza: BinaryNode, auth: Authenticatio const fullMessage: proto.IWebMessageInfo = { key, messageTimestamp: +stanza.attrs.t, - pushName: pushname, - status: key.fromMe ? proto.WebMessageInfo.WebMessageInfoStatus.SERVER_ACK : null, + pushName: pushname + } + + if(key.fromMe) { + fullMessage.status = proto.WebMessageInfo.WebMessageInfoStatus.SERVER_ACK } if(Array.isArray(stanza.content)) {