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:
14 files changed
+606
-49
No files matched your search
@@ -137,16 +137,18 @@ describe('compiled production Action registry', () => {
|
||||
const response = await handler.handle('get_group_system_msg', {
|
||||
group_id: '100000002',
|
||||
only_pending: true,
|
||||
count: '80',
|
||||
});
|
||||
|
||||
expect(response.status).toBe('ok');
|
||||
expect(handleGetGroupSystemMsg).toHaveBeenCalledWith({
|
||||
groupId: 100000002,
|
||||
onlyPending: true,
|
||||
count: 80,
|
||||
});
|
||||
const doc = ACTION_REGISTRY.resolve('get_group_system_msg');
|
||||
if (!doc || doc.kind === 'raw') throw new Error('get_group_system_msg action missing');
|
||||
expect(doc.action.doc.params.map((param) => param.name)).toEqual(['group_id', 'only_pending']);
|
||||
expect(doc.action.doc.params.map((param) => param.name)).toEqual(['group_id', 'only_pending', 'count']);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user