Merge branch 'master' of https://github.com/WhiskeySockets/Baileys into fix-eslint-prettier-editorconfig-rules

This commit is contained in:
canove
2025-05-28 22:42:28 -03:00
24 changed files with 16429 additions and 834 deletions

View File

@@ -23,7 +23,7 @@ export class USyncStatusProtocol implements USyncQueryProtocol {
parser(node: BinaryNode): StatusData | undefined {
if (node.tag === 'status') {
assertNodeErrorFree(node)
let status: string | null = node?.content!.toString()
let status: string | null = node?.content?.toString() ?? null
const setAt = new Date(+(node?.attrs.t || 0) * 1000)
if (!status) {
if (+node.attrs?.code === 401) {