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
2026-08-17 20:00:11 +08:00
parent 096ad0acfa
commit b3bd68d48d
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -363,8 +363,8 @@ export interface OidbGroupDetailFlags {
// Official request mask for group shutup expire (proto tag 45 → 60027).
// Lagrange's tag 59 requests 60259, which is a different field.
shutUpAllTimestamp?: pb<45, bool>;
/** Current complete app privilege bitfield; needed for masked mutations. */
privilegeFlag?: pb<99, bool>;
/** Request the complete app privilege bitfield. */
privilegeFlag?: pb<56, bool>;
/** Request the new-member history-visible switch. */
groupFlagExt4?: pb<101, bool>;
noFingerOpen?: pb<82, bool>;
+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.
@@ -20,7 +20,7 @@ interface GroupDetailResultsFixture {
name?: pb<15, string>;
shutUpAllTimestamp?: pb<45, uint_32>;
leftover59?: pb<59, uint_32>;
privilegeFlag?: pb<99, uint_32>;
privilegeFlag?: pb<56, uint_32>;
groupFlagExt4?: pb<101, uint_32>;
}