From 5c7c430da62b27e5bbb04b27269da4eb0963a206 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Thu, 13 Jun 2024 11:40:31 +0800 Subject: [PATCH] fix: remove adapter check for `getImg` --- utils/common.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/common.js b/utils/common.js index 9bf5b93..f9e2bda 100644 --- a/utils/common.js +++ b/utils/common.js @@ -715,9 +715,9 @@ export async function getImg (e) { if (e.source) { let reply let seq = e.isGroup ? e.source.seq : e.source.time - if (e.adapter === 'shamrock') { - seq = e.source.message_id - } + // if (e.adapter === 'shamrock') { + // seq = e.source.message_id + // } if (e.isGroup) { reply = (await e.group.getChatHistory(seq, 1)).pop()?.message } else { @@ -1355,4 +1355,4 @@ export function extractMarkdownJson(text) { } return mdJsonPairs -} \ No newline at end of file +}