Merge pull request #40 from SnowLuma/revert/pr-38-c2c-video-sceneType
Revert "fix(send): keep c2c video compatQMsgSceneType at 2 (#38)"
This commit is contained in:
1 file changed
+5
-11
@@ -487,17 +487,11 @@ export async function uploadVideoMsgInfo(
|
|||||||
subFileType: 100,
|
subFileType: 100,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
// Hardcoded 2 even on c2c (matches NapCat). Image/PTT use
|
// Scene tag the NTV2 upload registers under. image-upload and
|
||||||
// `isGroup ? 2 : 1` because their legacy compat elements differ
|
// ptt-upload both differentiate (group=2, c2c=1); video was
|
||||||
// per scene (notOnlineImage vs customFace; ptt c2c vs group),
|
// hardcoded to the group value, which contributed to the c2c
|
||||||
// but the legacy `videoFile` element has no scene split — its
|
// send-back rejection (PbSendMsg result=79).
|
||||||
// fromChatType/toChatType live inside the element itself — so
|
compatQmsgSceneType: isGroup ? 2 : 1,
|
||||||
// the server generates a single group-shaped compat payload
|
|
||||||
// regardless. Setting 1 here makes the server emit a c2c-scene
|
|
||||||
// shaped compat blob that old QQ clients fail to resolve,
|
|
||||||
// showing the message as "视频已过期" on those receivers while
|
|
||||||
// new clients (which only read the commonElem) display fine.
|
|
||||||
compatQmsgSceneType: 2,
|
|
||||||
extBizInfo: {
|
extBizInfo: {
|
||||||
pic: { bizType: 0, textSummary: 'Nya~' },
|
pic: { bizType: 0, textSummary: 'Nya~' },
|
||||||
video: { bytesPbReserve: new Uint8Array([0x80, 0x01, 0x00]) },
|
video: { bytesPbReserve: new Uint8Array([0x80, 0x01, 0x00]) },
|
||||||
|
|||||||
Reference in new issue
Block a user