mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: content being undefined
This commit is contained in:
@@ -23,7 +23,7 @@ export class USyncStatusProtocol implements USyncQueryProtocol {
|
|||||||
parser(node: BinaryNode): StatusData | undefined {
|
parser(node: BinaryNode): StatusData | undefined {
|
||||||
if(node.tag === 'status') {
|
if(node.tag === 'status') {
|
||||||
assertNodeErrorFree(node)
|
assertNodeErrorFree(node)
|
||||||
let status: string | null = node?.content!.toString()
|
let status: string | null = node?.content?.toString()
|
||||||
const setAt = new Date(+(node?.attrs.t || 0) * 1000)
|
const setAt = new Date(+(node?.attrs.t || 0) * 1000)
|
||||||
if(!status) {
|
if(!status) {
|
||||||
if(+node.attrs?.code === 401) {
|
if(+node.attrs?.code === 401) {
|
||||||
@@ -41,4 +41,4 @@ export class USyncStatusProtocol implements USyncQueryProtocol {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user