feat(onebot): report the invited account on group invite events

request.group.invite already identified the inviter. The event now
also reports the invited account when QQ provides it.

Closes #394
This commit is contained in:
DrSmoothl committed 2026-08-19 00:23:40 +08:00
1 parent 0a924634b2
commit 5a10fc4c9c
12 files changed
+181 -3

No files matched your search

@@ -36,6 +36,8 @@ export const decodeGroupInvitation: MsgPushDecoder = (ctx) => {
groupId: inner.groupUin ?? 0,
fromUin: resolveUidToUin(ctx.identity, inner.groupUin ?? 0, inner.invitorUid ?? ''),
fromUid: inner.invitorUid ?? '',
invitedUin: resolveUidToUin(ctx.identity, inner.groupUin ?? 0, inner.targetUid ?? ''),
invitedUid: inner.targetUid ?? '',
subType: 'invite',
message: '',
flag: 'invite:' + (inner.groupUin ?? 0) + ':' + (inner.invitorUid ?? ''),
@@ -53,6 +55,7 @@ export const decodeGroupInvite: MsgPushDecoder = (ctx) => {
groupId: invite.groupUin ?? 0,
fromUin: resolveUidToUin(ctx.identity, invite.groupUin ?? 0, invite.invitorUid ?? ''),
fromUid: invite.invitorUid ?? '',
invitedUin: ctx.selfUin,
subType: 'invite',
message: '',
flag: 'invite:' + (invite.groupUin ?? 0) + ':' + (invite.invitorUid ?? ''),