chore: 排除空消息

This commit is contained in:
手瓜一十雪 2024-08-13 22:11:28 +08:00
parent 254b85fbd8
commit 3ea92d57c2

View File

@ -51,8 +51,8 @@ export class OB11Constructor {
msg: RawMessage,
messagePostFormat: string = obcore.configLoader.configData.messagePostFormat
): Promise<OB11Message | undefined> {
if (msg.senderUin == "0") return;
if (msg.peerUin == "0") return;
if (msg.senderUin == "0" || msg.senderUin == "") return;
if (msg.peerUin == "0" || msg.peerUin) return;
//跳过空消息
const NTQQGroupApi = core.apis.GroupApi;
const NTQQUserApi = core.apis.UserApi;