fix(protocol): read group mute expire from official proto tags (#356)
get_group_info / get_group_list mapped FE5 tag 31 and 88D tag 59 as shutUpAllTimestamp, then treated any >0 value as muted. Official wrapper.node maps those tags to internal 60259; the real expire (60027 / groupShutupExpireTime) is FE5 tag 10 and 88D tag 45 (request mask 45). After a group had been muted, 60259 often stayed nonzero so group_all_shut stuck at -1. Read the 60027 tags and treat all-mute as expire > now (0xFFFFFFFF is permanent). Fixes #356
This commit is contained in:
8 files changed
+93
-12
No files matched your search
@@ -4,9 +4,8 @@
|
||||
// including ones the bot hasn't joined — used to put a name on a group invite
|
||||
// (where the invite push itself carries no group name). The `flags` block is a
|
||||
// request mask: a present bool(true)/string("") asks the server to include that
|
||||
// field in the response. Cross-checked against
|
||||
// dev/Lagrange.Core/.../GetGroupInfoService.cs — note it builds the envelope
|
||||
// with isUid=false, i.e. reserved=0 (NO uinForm), unlike the 0xFE5_2 list query.
|
||||
// field in the response. Envelope is reserved=0 (NO uinForm), unlike 0xFE5_2.
|
||||
// Mute expire request/response tag is 45 (official 60027), not Lagrange's 59.
|
||||
|
||||
import { protobuf_decode, protobuf_encode } from '@snowluma/proton';
|
||||
import type { OidbBase, OidbSvcTrpcTcp0x88D_0Response } from '@snowluma/proto-defs/oidb';
|
||||
@@ -33,6 +32,7 @@ export namespace FetchGroupDetail {
|
||||
ownerUid: on, createTime: on, maxMemberCount: on, memberCount: on,
|
||||
level: on, name: '', noticePreview: '', uin: on, lastSequence: on,
|
||||
lastMessageTime: on, question: on, answer: '', maxAdminCount: '',
|
||||
// Tag 45 (not Lagrange's 59): official request mask for 60027.
|
||||
shutUpAllTimestamp: on, privilegeFlag: on, groupFlagExt4: on,
|
||||
},
|
||||
},
|
||||
|
||||
@@ -57,7 +57,7 @@ export interface QQGroupInfo {
|
||||
level?: number;
|
||||
/** Group memo / announcement preview. '' when unknown (#197). */
|
||||
memo?: string;
|
||||
/** Whether the group currently has group-wide mute enabled. */
|
||||
/** Whether group-wide mute is currently in effect (expire still in the future). */
|
||||
allMuted?: boolean;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user