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:
DrSmoothl committed 2026-08-18 21:57:11 +08:00
1 parent d879ba1027
commit b088ffaff0
4 files changed
+21 -9

No files matched your search

@@ -440,9 +440,9 @@ describe('apis/group-admin', () => {
expect(bridge.sendRawPacket.mock.calls.map((call) => call[0])).toEqual([
'OidbSvcTrpcTcp.0x88d_0',
'OidbSvcTrpcTcp.0x89a_0',
'OidbSvcTrpcTcp.0x89a_0',
'OidbSvcTrpcTcp.0x89a_0',
'OidbSvcTrpcTcp.0x89a_8',
'OidbSvcTrpcTcp.0x89a_8',
'OidbSvcTrpcTcp.0x89a_8',
'OidbSvcTrpcTcp.0x88d_0',
]);
@@ -475,9 +475,11 @@ describe('apis/group-admin', () => {
allowMemberUploadAlbum: true,
});
expect(bridge.sendRawPacket.mock.calls[1]![0]).toBe('OidbSvcTrpcTcp.0x89a_8');
const envelope = protobuf_decode<OidbBase<Oidb0x89a_0MemberPermission>>(
bridge.sendRawPacket.mock.calls[1]![1],
);
expect(envelope.subCommand).toBe(8);
expect(envelope.body?.settings).toEqual({
appPrivilegeFlag: 0,
appPrivilegeMask: 1,