fix(protocol): read group privilege from the matching detail field

Member invite and capability bits come from a different group-detail
field than the history-visibility switch. Reading the wrong one made
later writes carry leftover bits the server rejects.
This commit is contained in:
DrSmoothl committed 2026-08-17 20:00:11 +08:00
1 parent 096ad0acfa
commit b3bd68d48d
3 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -126,8 +126,8 @@ export interface OidbSvcTrpcTcp0x88D_0Results {
// DecodeSingleGroupDetailInfoByBaseFilter: tag 45 → internal 60027.
// Tag 59 is 60259, not the mute expire. Request mask tag is also 45.
shutUpAllTimestamp?: pb<45, uint_32>;
/** Complete app privilege bitfield (requested with detail flag tag 99). */
privilegeFlag?: pb<99, uint_32>;
/** Complete app privilege bitfield (requested with detail flag tag 56). */
privilegeFlag?: pb<56, uint_32>;
/** New-member history-visible switch (0/1; omitted means hidden). */
groupFlagExt4?: pb<101, uint_32>;
// DecodeSingleGroupDetailInfoByBaseFilter: tag 82 → 60282, tag 83 → 60283.