mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
chore: log proto objects to prevent buffer arrays being printed
This commit is contained in:
@@ -48,7 +48,7 @@ export const generateLoginNode = (userJid: string, config: ClientPayloadConfig):
|
||||
username: +user,
|
||||
device: device,
|
||||
}
|
||||
return payload
|
||||
return proto.ClientPayload.fromObject(payload)
|
||||
}
|
||||
|
||||
export const generateRegistrationNode = (
|
||||
@@ -89,7 +89,7 @@ export const generateRegistrationNode = (
|
||||
},
|
||||
}
|
||||
|
||||
return registerPayload
|
||||
return proto.ClientPayload.fromObject(registerPayload)
|
||||
}
|
||||
|
||||
export const configureSuccessfulPairing = (
|
||||
|
||||
Reference in New Issue
Block a user