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
@@ -352,7 +352,9 @@ export interface OidbGroupDetailFlags {
|
||||
question?: pb<24, bool>;
|
||||
answer?: pb<25, string>;
|
||||
maxAdminCount?: pb<29, string>;
|
||||
shutUpAllTimestamp?: pb<59, bool>;
|
||||
// Official request mask for group shutup expire (proto tag 45 → 60027).
|
||||
// Lagrange's tag 59 requests 60259, which is a different field.
|
||||
shutUpAllTimestamp?: pb<45, bool>;
|
||||
/** Current complete app privilege bitfield; needed for masked mutations. */
|
||||
privilegeFlag?: pb<99, bool>;
|
||||
/** Current complete groupFlagExt4 bitfield; needed for masked mutations. */
|
||||
|
||||
@@ -82,7 +82,10 @@ export interface OidbSvcTrpcTcp0xFE5_2GroupInfo {
|
||||
description?: pb<18, string>;
|
||||
question?: pb<19, string>;
|
||||
announcement?: pb<30, string>;
|
||||
shutUpAllTimestamp?: pb<31, uint_32>;
|
||||
// wrapper.node 3.2.32 group_codec.cc DecodeGroupInfo: tag 10 → internal
|
||||
// 60027 (JS groupShutupExpireTime). Tag 31 is 60259, not the mute expire.
|
||||
// 0 = off, 0xFFFFFFFF = permanent, otherwise unix-seconds expire.
|
||||
shutUpAllTimestamp?: pb<10, uint_32>;
|
||||
}
|
||||
|
||||
export interface OidbSvcTrpcTcp0xFE5_2CustomInfo {
|
||||
@@ -116,7 +119,10 @@ export interface OidbSvcTrpcTcp0x88D_0Results {
|
||||
question?: pb<24, string>;
|
||||
answer?: pb<25, string>;
|
||||
maxAdminCount?: pb<29, uint_64>;
|
||||
shutUpAllTimestamp?: pb<59, uint_32>;
|
||||
// wrapper.node 3.2.32 group_info_fetch_codec.cc
|
||||
// DecodeSingleGroupDetailInfoByBaseFilter: tag 45 → internal 60027.
|
||||
// Tag 59 is 60259, not the mute expire. Request mask tag is also 45.
|
||||
shutUpAllTimestamp?: pb<45, uint_32>;
|
||||
/** Complete app privilege bitfield (requested with detail flag tag 99). */
|
||||
privilegeFlag?: pb<99, uint_32>;
|
||||
/** Complete groupFlagExt4 bitfield (requested with detail flag tag 101). */
|
||||
|
||||
Reference in new issue
Block a user