From 21c5b4c713367fb8ce3dda674f0b6f070257f418 Mon Sep 17 00:00:00 2001 From: canove Date: Wed, 23 Apr 2025 10:07:37 -0300 Subject: [PATCH] chore: lint --- src/Utils/decode-wa-message.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Utils/decode-wa-message.ts b/src/Utils/decode-wa-message.ts index 9586dec..789af5d 100644 --- a/src/Utils/decode-wa-message.ts +++ b/src/Utils/decode-wa-message.ts @@ -48,13 +48,13 @@ export function decodeMessageNode( const isMeLid = (jid: string) => areJidsSameUser(jid, meLid) if(isJidUser(from) || isLidUser(from)) { - if (recipient && !isJidMetaIa(recipient)) { + if(recipient && !isJidMetaIa(recipient)) { if(!isMe(from) && !isMeLid(from)) { throw new Boom('receipient present, but msg not from me', { data: stanza }) } chatId = recipient - } else { + } else { chatId = from } @@ -109,8 +109,8 @@ export function decodeMessageNode( if(key.fromMe) { fullMessage.status = proto.WebMessageInfo.Status.SERVER_ACK - } - + } + return { fullMessage, author, @@ -170,7 +170,7 @@ export const decryptMessageNode = ( type: e2eType, ciphertext: content }) - break + break case 'plaintext': msgBuffer = content break @@ -196,7 +196,7 @@ export const decryptMessageNode = ( Object.assign(fullMessage.message, msg) } else { fullMessage.message = msg - } + } } catch(err) { logger.error( { key: fullMessage.key, err },