fix(oidb): correct 0x9083 field layout so fetch_emoji_like returns users
Two bugs collapsed fetch_emoji_like into a perma-empty list with status=ok and no error output: 1. Req fields 4 and 5 were swapped (emojiType on field 4 / emojiId on field 5). The sibling 0x9082 OidbGroupReaction has field 4 = code (string) and field 5 = type (uint), and 0x9083 mirrors that layout — verified against LagrangeDev/LagrangeV2 `Internal/Packets/Service/SetGroupReaction.cs`. With our swap the wire types also mismatched (varint vs length-delim), so the server protobuf decoder dropped both fields and returned an empty list without ever surfacing an error. 2. Resp `inner.userInfo` was declared as a single message, but the server emits one entry per liker (repeated). Even after fixing the req, multi-user responses would have collapsed into the last entry. Map the decoded array on the InteractionApi side and filter uin=0 placeholders. Test now mocks two users to exercise the repeated path.
This commit is contained in:
3 files changed
+22
-7
No files matched your search
@@ -512,11 +512,18 @@ export interface FaceroamOpResp {
|
||||
field3?: pb<3, uint_32>;
|
||||
item?: pb<4, FaceroamOpRespItem>;
|
||||
}
|
||||
// 0x9083_1: fetch emoji-like user list. Field numbers must mirror the
|
||||
// sibling 0x9082 reaction Req (OidbGroupReaction): field 4 = emoji_id
|
||||
// (string), field 5 = emoji_type (uint). The pre-fix definition had
|
||||
// these two swapped, which silently dropped both fields on the server
|
||||
// side (wire type mismatch → protobuf decoder discards) and made every
|
||||
// call return an empty list with no error. Cross-checked against
|
||||
// Lagrange.Core V2 `Internal/Packets/Service/SetGroupReaction.cs`.
|
||||
export interface Oidb0x9083Req {
|
||||
groupId?: pb<2, uint_64>;
|
||||
sequence?: pb<3, uint_32>;
|
||||
emojiType?: pb<4, uint_32>;
|
||||
emojiId?: pb<5, string>;
|
||||
emojiId?: pb<4, string>;
|
||||
emojiType?: pb<5, uint_32>;
|
||||
cookie?: pb<6, bytes>;
|
||||
field7?: pb<7, uint_32>;
|
||||
count?: pb<8, uint_32>;
|
||||
@@ -527,7 +534,11 @@ export interface Oidb0x9083RespUserInfo {
|
||||
field3?: pb<3, uint_32>;
|
||||
}
|
||||
export interface Oidb0x9083RespInner {
|
||||
userInfo?: pb<1, Oidb0x9083RespUserInfo>;
|
||||
// The server returns one entry per liker — must be repeated. A single
|
||||
// field collapses N wire entries into "last writer wins", so groups
|
||||
// with multiple likers used to come back as a single user (or empty
|
||||
// if the wire layout shifted).
|
||||
userInfo?: pb_repeated<1, Oidb0x9083RespUserInfo>;
|
||||
field4?: pb<4, uint_32>;
|
||||
}
|
||||
export interface Oidb0x9083Resp {
|
||||
|
||||
Reference in new issue
Block a user