Update constructor.ts

This commit is contained in:
Fripine 2024-04-25 00:54:36 +08:00 committed by GitHub
parent 067c3a9a57
commit e25ef4940a

View File

@ -451,7 +451,7 @@ export class OB11Constructor {
if (msg.chatType !== ChatType.friend) {
return;
}
if (msg.peerUin && msg.peerUid) {
if (msg.msgType === 5 && msg.subMsgType === 12) {
const event = new OB11FriendAddNoticeEvent(parseInt(msg.peerUin));
return event;
}