fix(protocol): set_group_name body tag 3, not 1 (#173, OIDB 1006)
set_group_name (OIDB 0x89a_15) always failed with OIDB error 1006 even with admin rights. The group name in the body sits at tag 3, but we had it at tag 1 — so the server rejected the malformed request structure before ever checking permission. Confirmed against Lagrange's OidbSvcTrpcTcp0x89A_15Body (ProtoMember(3) TargetName). The reporter had tried tag 1 and tag 2 (both still 1006) — the answer was tag 3. Live-verified on tempserver: with the fix the error changes from 1006 (structure rejected) to 1328 (permission — the test bot is only a member), proving the request structure is now accepted; an admin bot will succeed.
This commit is contained in:
1 file changed
+4
-1
@@ -109,7 +109,10 @@ export interface OidbRenameMember {
|
||||
body?: pb<3, OidbRenameMemberBody>;
|
||||
}
|
||||
export interface OidbRenameGroupBody {
|
||||
targetName?: pb<1, string>;
|
||||
// The group name lives at tag 3, NOT tag 1 — tags 1/2 make the server reject
|
||||
// 0x89a_15 with OIDB error 1006 (#173). Confirmed against Lagrange's
|
||||
// OidbSvcTrpcTcp0x89A_15Body (ProtoMember(3) TargetName).
|
||||
targetName?: pb<3, string>;
|
||||
}
|
||||
export interface OidbRenameGroup {
|
||||
groupUin?: pb<1, uint_32>;
|
||||
|
||||
Reference in new issue
Block a user