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

+7 -4
View File
@@ -139,10 +139,13 @@ export interface OidbDeleteFriend {
field1?: pb<1, OidbDeleteFriendField1>;
}
export interface OidbGroupRequestBody {
sequence?: pb<1, uint_64>;
eventType?: pb<2, uint_32>;
groupUin?: pb<3, uint_32>;
message?: pb<4, string>;
sequence?: pb<1, uint_64>;
eventType?: pb<2, uint_32>;
groupUin?: pb<3, uint_32>;
// Encoder always writes this field. An omitted empty string is not the
// same as a present empty/space value; callers must set it.
message?: pb_optional<4, string>;
operateTransInfo?: pb<7, bytes>;
}
export interface OidbGroupRequestAction {
accept?: pb<1, uint_32>;
+8 -6
View File
@@ -208,9 +208,10 @@ export interface OidbSvcTrpcTcp0x10C0ResponseRequest {
group?: pb<4, OidbSvcTrpcTcp0x10C0ResponseGroup>;
target?: pb<5, OidbSvcTrpcTcp0x10C0ResponseUser>;
invitor?: pb<6, OidbSvcTrpcTcp0x10C0ResponseUser>;
operatorUser?: pb<7, OidbSvcTrpcTcp0x10C0ResponseUser>;
field9?: pb<9, string>;
comment?: pb<10, string>;
operatorUser?: pb<7, OidbSvcTrpcTcp0x10C0ResponseUser>;
field9?: pb<9, string>;
comment?: pb<10, string>;
operateTransInfo?: pb<14, bytes>;
}
export interface OidbSvcTrpcTcp0x10C0Response {
@@ -238,9 +239,10 @@ export interface OidbSvcTrpcTcp0x10C0ResponseRequestByUin {
group?: pb<4, OidbSvcTrpcTcp0x10C0ResponseGroup>;
target?: pb<5, OidbSvcTrpcTcp0x10C0ResponseUserByUin>;
invitor?: pb<6, OidbSvcTrpcTcp0x10C0ResponseUserByUin>;
operatorUser?: pb<7, OidbSvcTrpcTcp0x10C0ResponseUserByUin>;
field9?: pb<9, string>;
comment?: pb<10, string>;
operatorUser?: pb<7, OidbSvcTrpcTcp0x10C0ResponseUserByUin>;
field9?: pb<9, string>;
comment?: pb<10, string>;
operateTransInfo?: pb<14, bytes>;
}
export interface OidbSvcTrpcTcp0x10C0ResponseByUin {