Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MliKiowa committed Aug 15, 2024
1 parent 1742247 commit 0b11786
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/onebot/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,11 +326,6 @@ export class NapCatOneBot11Adapter {
const flag = notify.group.groupCode + '|' + notify.seq + '|' + notify.type;
this.context.logger.logDebug('收到群通知', notify);

// let member2: GroupMember;
// if (notify.user2.uid) {
// member2 = await getGroupMember(notify.group.groupCode, null, notify.user2.uid);
// }

if ([
GroupNotifyTypes.ADMIN_SET,
GroupNotifyTypes.ADMIN_UNSET,
Expand Down Expand Up @@ -406,7 +401,7 @@ export class NapCatOneBot11Adapter {
const groupInviteEvent = new OB11GroupRequestEvent(
this.core,
parseInt(notify.group.groupCode),
parseInt(notify.user1.uid),
parseInt(await this.core.apis.UserApi.getUinByUidV2(notify.user1.uid)),
'invite',
notify.postscript,
flag,
Expand Down

0 comments on commit 0b11786

Please sign in to comment.