UNPKG

@nexon.js/baileys

Version:
38 lines (34 loc) 643 B
"use strict" Object.defineProperty(exports, "__esModule", { value: true }) const WABinary_1 = require("../../WABinary") class USyncLIDProtocol { constructor() { this.name = 'lid' } getQueryElement() { return { tag: 'lid', attrs: {} } } getUserElement(user) { if (user.lid) { return { tag: 'lid', attrs: { jid: user.lid } } } else { return null } } parser(node) { if (node.tag === 'lid') { return node.attrs.val } return null } } module.exports = { USyncLIDProtocol }