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
@@ -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>;