Merge branch 'master' into invalid-qr-patch

This commit is contained in:
Adhiraj Singh
2022-04-12 16:51:28 +05:30

View File

@@ -83,8 +83,12 @@ export const makeSocket = ({
}
/** send a binary node */
const sendNode = (node: BinaryNode) => {
const buff = encodeBinaryNode(node)
const sendNode = (frame: BinaryNode) => {
if(logger.level === 'trace') {
logger.trace({ msgId: frame.attrs.id, fromMe: true, frame }, 'communication')
}
const buff = encodeBinaryNode(frame)
return sendRawMessage(buff)
}