fix(bridge): also drop config1.field5002 from the OIDB 0xFE5_2 mask (#42)

Follow-up to a07521d. The reporter's correction (895 friends / 221
groups account) was that turning off only field5003 + all of config2
wasn't enough — field5002 has to go too, otherwise QQ NT still emits
a response large enough to blow the named-pipe write buffer and
fetchGroupList dies with EPIPE.

The response decoder (OidbSvcTrpcTcp0xFE5_2GroupInfoSchema) only knows
about tag numbers 1/2/3/4/5/18/19/30, and fetchGroupList itself only
reads groupName / memberCount / memberMax / customInfo.remark off the
result. Tag 5002 isn't in the response schema and isn't consulted by
any caller, so silencing it on the request side is purely a payload
reduction with no observable behavior change.
This commit is contained in:
DrSmoothl committed 2026-05-18 14:36:20 +08:00
1 parent 7a2de230bf
commit 6a7c9a5de1
1 file changed
+4 -4
+4 -4
View File
@@ -112,9 +112,9 @@ export async function fetchGroupList(bridge: Bridge): Promise<QQGroupInfo[]> {
// The user-verified safe combination: keep `config1.*` mostly on
// (the response decoder pulls groupOwner / memberMax / memberCount /
// groupName / description / question / announcement from this
// group), but turn off the two costly groups of bools that never
// map back to a decoded field:
// - config1.field5003 (an expansive 5xxx-range descriptor)
// group), but turn off the costly groups of bools that never map
// back to a decoded field:
// - config1.field5002, field5003 (expansive 5xxx-range descriptors)
// - all of config2 (auxiliary per-group blob the decoder ignores)
const allTrue = true;
const body = {
@@ -127,7 +127,7 @@ export async function fetchGroupList(bridge: Bridge): Promise<QQGroupInfo[]> {
question: allTrue, field20: allTrue, field22: allTrue, field23: allTrue,
field24: allTrue, field25: allTrue, field26: allTrue, field27: allTrue,
field28: allTrue, field29: allTrue, field30: allTrue, field31: allTrue,
field32: allTrue, field5001: allTrue, field5002: allTrue, field5003: false,
field32: allTrue, field5001: allTrue, field5002: false, field5003: false,
},
config2: {
field1: false, field2: false, field3: false, field4: false,