fix: remove adapter check for getImg

This commit is contained in:
ikechan8370 2024-06-13 11:40:31 +08:00 committed by GitHub
parent 01425103f4
commit 5c7c430da6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {