mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
uSync error for disappear_mode (#1589)
Fixed the problem that occurred when pushing the disappear_mode.
This commit is contained in:
@@ -21,7 +21,7 @@ export class USyncDisappearingModeProtocol implements USyncQueryProtocol {
|
|||||||
}
|
}
|
||||||
|
|
||||||
parser(node: BinaryNode): DisappearingModeData | undefined {
|
parser(node: BinaryNode): DisappearingModeData | undefined {
|
||||||
if (node.tag === 'status') {
|
if (node.tag === 'disappearing_mode') {
|
||||||
assertNodeErrorFree(node)
|
assertNodeErrorFree(node)
|
||||||
const duration: number = +node?.attrs.duration
|
const duration: number = +node?.attrs.duration
|
||||||
const setAt = new Date(+(node?.attrs.t || 0) * 1000)
|
const setAt = new Date(+(node?.attrs.t || 0) * 1000)
|
||||||
|
|||||||
Reference in New Issue
Block a user