fix(protocol): apply member permission updates on the native group setting command

set_group_member_permissions was still rejected after the previous
command switch. Linux QQ writes these capabilities with the same
group-detail command as the other admin settings.

Closes #392
This commit is contained in:
DrSmoothl committed 2026-08-19 21:46:44 +08:00
1 parent 4b8cc4292b
commit e6aeef02b4
3 files changed
+15 -15

No files matched your search

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