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:
3 files changed
+15
-15
No files matched your search
@@ -24,9 +24,9 @@ function makeSender() {
|
||||
}
|
||||
|
||||
describe('SetMemberPermission namespace', () => {
|
||||
it('declares 0x89A_8', () => {
|
||||
it('declares 0x89A_0', () => {
|
||||
expect(SetMemberPermission.command).toBe(0x89A);
|
||||
expect(SetMemberPermission.subCommand).toBe(8);
|
||||
expect(SetMemberPermission.subCommand).toBe(0);
|
||||
});
|
||||
|
||||
it.each<[GroupMemberPermission, number]>([
|
||||
@@ -44,10 +44,10 @@ describe('SetMemberPermission namespace', () => {
|
||||
});
|
||||
|
||||
const [command, bytes] = sender.sendRawPacket.mock.calls[0]!;
|
||||
expect(command).toBe('OidbSvcTrpcTcp.0x89a_8');
|
||||
expect(command).toBe('OidbSvcTrpcTcp.0x89a_0');
|
||||
const envelope = protobuf_decode<OidbBase<Oidb0x89a_0MemberPermission>>(bytes);
|
||||
expect(envelope.command).toBe(0x89A);
|
||||
expect(envelope.subCommand).toBe(8);
|
||||
expect(envelope.subCommand ?? 0).toBe(0);
|
||||
expect(envelope.body).toMatchObject({
|
||||
groupUin: 12345n,
|
||||
settings: {
|
||||
|
||||
Reference in new issue
Block a user