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:
DrSmoothl committed 2026-08-17 18:40:08 +08:00
1 parent 618dd52f46
commit aec0c781b3
11 files changed
+136 -45

No files matched your search

@@ -389,6 +389,9 @@ export class ContactsApi {
eventType: operationType ?? 0,
comment: raw.comment ?? '',
filtered,
operateTransInfo: raw.operateTransInfo && raw.operateTransInfo.length > 0
? raw.operateTransInfo
: undefined,
});
}
this.ctx.identity.rememberGroupRequests(requests);
@@ -445,6 +448,9 @@ export class ContactsApi {
eventType: operationType ?? 0,
comment: raw.comment ?? '',
filtered,
operateTransInfo: raw.operateTransInfo && raw.operateTransInfo.length > 0
? raw.operateTransInfo
: undefined,
});
}
this.ctx.identity.rememberGroupRequests(requests);