This repository has been archived on 2026-03-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openclaw-extensions/wecom/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/UsyncLIDProtocol.js
T

29 lines
582 B
JavaScript

export 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;
}
}
//# sourceMappingURL=UsyncLIDProtocol.js.map