fix(bridge): include emoji type in group reaction request
set_msg_emoji_like silently no-op'd for unicode emoji because the reaction request didn't tell the server which emoji namespace the code belongs to (QQ face vs unicode codepoint). Derive the type from the code length — short numeric ids are QQ faces, longer codepoint strings are unicode.
This commit is contained in:
2 files changed
+11
-1
No files matched your search
@@ -395,6 +395,11 @@ export const OidbGroupReactionSchema = {
|
||||
groupUin: { field: 1, type: 'uint32' as const },
|
||||
sequence: { field: 2, type: 'uint32' as const },
|
||||
code: { field: 3, type: 'string' as const },
|
||||
// 1 = legacy QQ face (short numeric id like "76"), 2 = unicode emoji
|
||||
// (decimal codepoint string like "128516" for 😄). Omitting this
|
||||
// field used to make unicode reactions fail server-side because the
|
||||
// server defaulted to type=1 and couldn't resolve a 6-digit code.
|
||||
type: { field: 4, type: 'uint32' as const },
|
||||
} satisfies ProtoSchema;
|
||||
|
||||
// --- 0x6D8_1: Group file list ---
|
||||
|
||||
Reference in new issue
Block a user