fix(retry): final commit: linting

This commit is contained in:
Rajeh Taher
2024-03-13 03:30:20 +02:00
committed by GitHub
parent 4d4dd58e06
commit 767af0b688

View File

@@ -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')