From 767af0b688a21a5737ef745997f8687870dc1294 Mon Sep 17 00:00:00 2001 From: Rajeh Taher Date: Wed, 13 Mar 2024 03:30:20 +0200 Subject: [PATCH] fix(retry): final commit: linting --- src/Socket/messages-recv.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Socket/messages-recv.ts b/src/Socket/messages-recv.ts index 818b95a..575263d 100644 --- a/src/Socket/messages-recv.ts +++ b/src/Socket/messages-recv.ts @@ -100,12 +100,12 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => { } - if (!!attrs.type && (tag !== "message" || getBinaryNodeChild({ tag, attrs, content }, "unavailable"))) { - stanza.attrs.type = attrs.type; + if(!!attrs.type && (tag !== 'message' || getBinaryNodeChild({ tag, attrs, content }, 'unavailable'))) { + stanza.attrs.type = attrs.type } - if(tag === "message" && getBinaryNodeChild({ tag, attrs, content }, "unavailable")) { - stanza.attrs.from = authState.creds.me!.id; + if(tag === 'message' && getBinaryNodeChild({ tag, attrs, content }, 'unavailable')) { + stanza.attrs.from = authState.creds.me!.id } logger.debug({ recv: { tag, attrs }, sent: stanza.attrs }, 'sent ack')