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

@@ -6,7 +6,9 @@
import { describe, it, expect, vi, beforeEach } from 'vitest';
vi.mock('@snowluma/protocol/highway/pipeline', () => ({
runNtv2Upload: vi.fn(async () => ({ msgInfo: { msgInfoBody: [], extBizInfo: {} } })),
runNtv2Upload: vi.fn(async () => ({
msgInfo: { msgInfoBody: [{ index: { fileUuid: 'uploaded-image' } }], extBizInfo: {} },
})),
finalizeMediaMsgInfo: vi.fn(() => new Uint8Array([0xca, 0xfe])),
hexToBytes: vi.fn((hex: string) => new Uint8Array(hex.length / 2)),
}));