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
@@ -23,6 +23,7 @@ function fakeInstance(
|
||||
nickname: `retiring-${uin}`,
|
||||
quiesce,
|
||||
dispose,
|
||||
startGroupRequestPolling: vi.fn(),
|
||||
getConnectionStatuses: () => statuses,
|
||||
} as unknown as OneBotInstance;
|
||||
}
|
||||
@@ -173,6 +174,9 @@ describe('OneBotManager database preparation', () => {
|
||||
|
||||
expect(beginMigration).toHaveBeenCalledOnce();
|
||||
expect(manager.getInstance('10001')).not.toBeNull();
|
||||
await vi.waitFor(() => {
|
||||
expect(instance.startGroupRequestPolling).toHaveBeenCalledOnce();
|
||||
});
|
||||
} finally {
|
||||
await manager.dispose();
|
||||
process.chdir(originalCwd);
|
||||
|
||||
Reference in new issue
Block a user