fix(protocol): apply member permission updates on the correct group setting command
set_group_member_permissions was still rejected after the privilege flag read was corrected. Album, temporary-session, and create-group writes use a different 0x89A variant than invite policy. Closes #392
This commit is contained in:
4 files changed
+21
-9
No files matched your search
@@ -1,6 +1,8 @@
|
||||
// 0x89A_0 — update one member capability through the appPrivilegeFlag deny
|
||||
// bits. Current QQ applies one selected mask per operation; callers that change
|
||||
// multiple capabilities must invoke this namespace sequentially.
|
||||
// 0x89A_8 — update one member capability through the appPrivilegeFlag deny
|
||||
// bits. Invite policy shares the same settings tags on 0x89A_0; album /
|
||||
// temporary-session / create-group writes use this variant. Current QQ applies
|
||||
// one selected mask per operation; callers that change multiple capabilities
|
||||
// must invoke this namespace sequentially.
|
||||
|
||||
import { protobuf_decode, protobuf_encode } from '@snowluma/proton';
|
||||
import type { OidbBase, OidbEmpty } from '@snowluma/proto-defs/oidb';
|
||||
@@ -50,7 +52,7 @@ export function decodeGroupMemberPermissions(privilegeFlag: number): {
|
||||
|
||||
export namespace SetMemberPermission {
|
||||
export const command = 0x89A;
|
||||
export const subCommand = 0;
|
||||
export const subCommand = 8;
|
||||
|
||||
export interface Params {
|
||||
groupId: number;
|
||||
|
||||
Reference in new issue
Block a user