chore: lint

This commit is contained in:
canove
2025-04-23 10:07:37 -03:00
parent 36456d6db6
commit 21c5b4c713

View File

@@ -48,13 +48,13 @@ export function decodeMessageNode(
const isMeLid = (jid: string) => areJidsSameUser(jid, meLid) const isMeLid = (jid: string) => areJidsSameUser(jid, meLid)
if(isJidUser(from) || isLidUser(from)) { if(isJidUser(from) || isLidUser(from)) {
if (recipient && !isJidMetaIa(recipient)) { if(recipient && !isJidMetaIa(recipient)) {
if(!isMe(from) && !isMeLid(from)) { if(!isMe(from) && !isMeLid(from)) {
throw new Boom('receipient present, but msg not from me', { data: stanza }) throw new Boom('receipient present, but msg not from me', { data: stanza })
} }
chatId = recipient chatId = recipient
} else { } else {
chatId = from chatId = from
} }
@@ -109,8 +109,8 @@ export function decodeMessageNode(
if(key.fromMe) { if(key.fromMe) {
fullMessage.status = proto.WebMessageInfo.Status.SERVER_ACK fullMessage.status = proto.WebMessageInfo.Status.SERVER_ACK
} }
return { return {
fullMessage, fullMessage,
author, author,
@@ -170,7 +170,7 @@ export const decryptMessageNode = (
type: e2eType, type: e2eType,
ciphertext: content ciphertext: content
}) })
break break
case 'plaintext': case 'plaintext':
msgBuffer = content msgBuffer = content
break break
@@ -196,7 +196,7 @@ export const decryptMessageNode = (
Object.assign(fullMessage.message, msg) Object.assign(fullMessage.message, msg)
} else { } else {
fullMessage.message = msg fullMessage.message = msg
} }
} catch(err) { } catch(err) {
logger.error( logger.error(
{ key: fullMessage.key, err }, { key: fullMessage.key, err },