fix(onebot): preserve images in message history

Refs #659
This commit is contained in:
DrSmoothl committed 2026-11-07 13:31:14 +08:00
1 parent 87f7bd8c54
commit f2ade5603f
15 files changed
+1284 -58

No files matched your search

@@ -64,7 +64,9 @@ describe('image sticker presentation (#468)', () => {
width: 1,
height: 1,
picFormat: 1001,
imageUrl: `https://multimedia.nt.qq.com.cn/download?appid=${isGroup ? 1407 : 1406}&fileid=cached-image`,
});
expect(element.fileId).toBe(element.fileName);
const sent = protobuf_decode<EncodableMediaMsgInfo>(bytes);
expect(sendRawPacket).toHaveBeenCalledTimes(1);
expect(sent.msgInfoBody?.[0]?.index?.fileUuid).toBe('cached-image');