fix(onebot): approve pending group join requests that were rejected as gone
Closes #380. An empty reject reason and a stale request type could make the server treat a still-pending join as already handled.
This commit is contained in:
11 files changed
+136
-45
No files matched your search
@@ -627,8 +627,8 @@ describe('buildApiContext handleGroupRequest', () => {
|
||||
|
||||
await api.handleGroupRequest('slreq:1:123456:710410:22:1', 'add', true, 'welcome');
|
||||
|
||||
expect(setAddRequest).toHaveBeenCalledWith(710410, 123456, 22, true, 'welcome', true);
|
||||
expect(fetchGroupRequests).not.toHaveBeenCalled();
|
||||
expect(setAddRequest).toHaveBeenCalledWith(710410, 123456, 22, true, 'welcome', true, undefined);
|
||||
expect(fetchGroupRequests).toHaveBeenCalled();
|
||||
expect(ref.bridge.apis.groupAdmin.setAddRequest).toHaveBeenCalledOnce();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user