fix(protocol): send super/new faces with the right wire encoding (#168)
A face was always built as a legacy FaceElem (face.index). QQ-NT only renders classic small faces that way; newer 'super'/animated faces sent as face.index are silently remapped by the server (e.g. 424→168) or shown as a placeholder. Classify each face id off QQ's own system-face catalog (0x9154_1, ported from SLE/Lagrange) and pick the matching wire form: - super (animated, aniSticker pack ≠ (1,1)) → CommonElem 37 + QFaceExtra - other id ≥ 260 → CommonElem 33 + QSmallFaceExtra - classic id < 260 → legacy FaceElem The catalog is fetched once (shared, lazy-warmed off the first face send) and classify falls back to an id-range guess until it lands. Data-driven so all 66 non-(1,1) super faces encode correctly, not just a hardcoded few. Verified on a live account: 424→424 (was 168), super 392→392, classic 14→14.
This commit is contained in:
6 files changed
+429
-6
No files matched your search
@@ -91,6 +91,10 @@
|
||||
"./oidb-actions/ocr": {
|
||||
"types": "./src/oidb-actions/ocr.ts",
|
||||
"default": "./src/oidb-actions/ocr.ts"
|
||||
},
|
||||
"./oidb-actions/sys-faces": {
|
||||
"types": "./src/oidb-actions/sys-faces.ts",
|
||||
"default": "./src/oidb-actions/sys-faces.ts"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
Reference in new issue
Block a user