You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.
/** 下载并解析合并转发 */
async getForwardMsg(resid) {
let ret = [], msgs = [];
const buf = await this._downloadMultiMsg(String(resid), 2);
let a = core_1.pb.decode(buf)[2];
if (!Array.isArray(a))
a = [a];
for (let aa of a) {
msgs = [];
aa = aa[2][1];
if (!Array.isArray(aa))
aa = [aa];
for (let proto of aa) {
try {
msgs.push(new message_1.ForwardMessage(proto));
}
catch { }
}
ret.push(msgs);
}
return ret;
}
Node.js Version
node v14.18.2
Package Version
v2.1.8
Login Protocol
Android
Bug Description
通过 getForwardMsg(resid) API 解析带有多条合并消息的合并消息,只会返回合并消息内的第一条合并消息内容
消息情况如下:
外层合并消息: [ [ { 合并消息1 } ], [ { 合并消息2 } ], [ { 合并消息3 } ] ]
然后只会返回 合并消息1 的内容,没有其他消息的内容。
具体 xml 消息内容如下:
Log Details
The text was updated successfully, but these errors were encountered: