uSync error for disappear_mode (#1589)

Fixed the problem that occurred when pushing the disappear_mode.
This commit is contained in:
Pedro Dias
2025-07-04 17:28:52 -03:00
committed by GitHub
parent 9b5afc8c6b
commit 691b40a8f7

View File

@@ -21,7 +21,7 @@ export class USyncDisappearingModeProtocol implements USyncQueryProtocol {
}
parser(node: BinaryNode): DisappearingModeData | undefined {
if (node.tag === 'status') {
if (node.tag === 'disappearing_mode') {
assertNodeErrorFree(node)
const duration: number = +node?.attrs.duration
const setAt = new Date(+(node?.attrs.t || 0) * 1000)