fix(onebot): match group invitations to the correct request

Report distinct invitations separately and approve only the request that belongs to the account and inviter. Reject ambiguous approvals and resolve the sender of invitations from outside the contact list.

Refs #612
This commit is contained in:
DrSmoothl committed 2026-10-31 18:28:05 +08:00
1 parent d8763c98db
commit 299fa85a74
16 files changed
+429 -142

No files matched your search

@@ -200,7 +200,7 @@ function makeRef(
fetchGroupRequests: vi.fn(async () => []),
fetchDownloadRKeys: vi.fn(async () => []),
findGroupInviteCardGroupBySequence: vi.fn(() => undefined),
getGroupInviteCardSequence: vi.fn(() => undefined),
groupInvites: { getSelfInviteNotice: vi.fn(() => undefined) },
...overrides.apis?.contacts,
},
groupFile: {