feat: support for customizing the timestamp of fake forwardMsg

This commit is contained in:
pk5ls20 committed 2024-10-26 04:06:42 +08:00
1 parent 730c928f91
commit 640fb75f74
3 files changed
+5 -3

No files matched your search

+1 -1
View File
@@ -187,7 +187,7 @@ export class SendMsg extends BaseAction<OB11PostSendMsg, ReturnDataType> {
senderUin: Number(node.data.user_id ?? parentMeta?.user_id) || +this.core.selfInfo.uin,
senderName: node.data.nickname ?? parentMeta?.nickname ?? "QQ用户",
groupId: msgPeer.chatType === ChatType.KCHATTYPEGROUP ? +msgPeer.peerUid : undefined,
time: Date.now(),
time: Number(node.data.time) || Date.now(),
msg: sendElements,
};
logger.logDebug(`handleForwardedNodesPacket 开始转换 ${JSON.stringify(packetMsgElements)}`);