fix: default
This commit is contained in:
1 parent
e493291357
commit
34e50fcea6
1 file changed
+1
-1
@@ -38,7 +38,7 @@ export default class GoCQHTTPGetGroupMsgHistory extends BaseAction<Payload, Resp
|
|||||||
}
|
}
|
||||||
if (!payload.message_seq) {
|
if (!payload.message_seq) {
|
||||||
let latestMsgId = (await NTQQMsgApi.getLastestMsgByUids(peer)).msgList[0].msgId;
|
let latestMsgId = (await NTQQMsgApi.getLastestMsgByUids(peer)).msgList[0].msgId;
|
||||||
targetMsgShortId = await MessageUnique.createMsg(peer, latestMsgId);
|
targetMsgShortId = await MessageUnique.createMsg(peer, latestMsgId || '0');
|
||||||
}
|
}
|
||||||
const startMsgId = (await MessageUnique.getMsgIdAndPeerByShortId(targetMsgShortId ?? (payload.message_seq ?? 0)))?.MsgId || '0';
|
const startMsgId = (await MessageUnique.getMsgIdAndPeerByShortId(targetMsgShortId ?? (payload.message_seq ?? 0)))?.MsgId || '0';
|
||||||
const historyResult = (await NTQQMsgApi.getMsgHistory(peer, startMsgId, count));
|
const historyResult = (await NTQQMsgApi.getMsgHistory(peer, startMsgId, count));
|
||||||
|
|||||||
Reference in new issue
Block a user