mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
fix: typo
This commit is contained in:
parent
d8ed9292e3
commit
4d6bd0e5f7
@ -44,12 +44,16 @@ export class LaanaMessageUtils {
|
||||
const fileCacheIds: string[] = [];
|
||||
|
||||
if (msgContent.repliedMsgId) {
|
||||
const { msgSeq, msgId, senderUin } = (
|
||||
const replyMsg = (
|
||||
await this.core.apis.MsgApi.getMsgsByMsgId(
|
||||
await this.laanaPeerToRaw(params.targetPeer!),
|
||||
[msgContent.repliedMsgId]
|
||||
)
|
||||
).msgList[0];
|
||||
if (!replyMsg) {
|
||||
throw '回复的消息不存在';
|
||||
}
|
||||
const { msgSeq, msgId, senderUin, senderUid } = replyMsg;
|
||||
elements.push({
|
||||
elementType: ElementType.REPLY,
|
||||
elementId: '',
|
||||
@ -57,7 +61,7 @@ export class LaanaMessageUtils {
|
||||
replayMsgSeq: msgSeq,
|
||||
replayMsgId: msgId,
|
||||
senderUin: senderUin,
|
||||
senderUinStr: senderUin,
|
||||
senderUidStr: senderUid,
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user