feat: 精简历史获取

This commit is contained in:
手瓜一十雪
2024-08-03 15:03:41 +08:00
parent 68d17dbc7c
commit dac420ac06
2 changed files with 7 additions and 7 deletions

View File

@@ -106,7 +106,7 @@ export class NTQQMsgApi {
} | undefined> {
return napCatCore.session.getMsgService().getMultiMsg(peer, rootMsgId, parentMsgId);
}
static async getLastestMsgByUids(peer: Peer) {
static async getLastestMsgByUids(peer: Peer, count: number = 20) {
let ret = await napCatCore.session.getMsgService().queryMsgsWithFilterEx('0', '0', '0', {
chatInfo: peer,
filterMsgType: [],