feat(onebot): report web-originated group requests

Report pending group invitations through the standard OneBot request event even when their origin does not provide a live notification.

Prevent duplicate delivery when the same invitation is observed more than once, stop outstanding work with the account lifecycle, and preserve previously supported invitation behavior.

Expand group-system message queries and surface incomplete lookups instead of reporting misleading empty or not-found results.
This commit is contained in:
DrSmoothl committed 2026-08-10 00:26:16 +08:00
1 parent fe44a2f5bc
commit 1996192a5e
14 files changed
+606 -49

No files matched your search

@@ -1059,16 +1059,17 @@ describe('extended-actions / get_group_ignored_notifies', () => {
actor: 8888,
invitor_uin: 7777,
invitor_nick: 'inviter',
flag: '7:999:u_t:filtered',
flag: 'slreq:1:42:999:7:1',
}]);
});
it('returns [] when the fetch throws', async () => {
it('surfaces filtered-inbox failures instead of returning a false empty result', async () => {
const bridge = fakeBridge({
fetchGroupRequests: (async () => { throw new Error('boom'); }) as any,
});
const res = await makeHandler(fakeCtx(bridge)).handle('get_group_ignored_notifies', {});
expect(res).toMatchObject({ status: 'ok', data: [] });
expect(res).toMatchObject({ status: 'failed' });
expect(res.wording).toContain('boom');
});
});