fix: preserve quoted message context across channels

This commit is contained in:
xmanrui 2026-09-02 01:27:35 +08:00
parent c2be2389b0
commit 94e114b9b3
46 changed files with 4242 additions and 321 deletions

View file

@ -89,6 +89,7 @@ test('collecting rejects non-text and other commands without counting them', ()
const media = batches.handle('direct:one', 'photo caption', { plainText: false });
assert.equal(media.kind, 'unsupported-content');
assert.match(media.message, /未收录/);
assert.match(media.message, /图片、文件或引用消息/);
const mediaCommand = batches.handle('direct:one', '/cancel', { plainText: false });
assert.equal(mediaCommand.kind, 'unsupported-content');