Skip to content

Commit

Permalink
fix(retry): final commit: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
PurpShell committed Mar 13, 2024
1 parent 4d4dd58 commit 767af0b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Socket/messages-recv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 767af0b

Please sign in to comment.