fix(ui): adjust image URL check condition

This commit is contained in:
Jerry 2025-11-14 07:30:22 +08:00
parent f171a534a9
commit 2a43f40b5f

View File

@ -141,7 +141,7 @@ async function extractUserMessage(msg, nickname, e) {
}); });
} }
const imgUrls = await YunzaiUtils.getImages(e, 1, true); const imgUrls = await YunzaiUtils.getImages(e, 1, true);
if (imgUrls.length > 0) { if (imgUrls) {
returnMessage += `[${e.sender?.nickname},id:${e.user_id}]发送了一张图片(你可能暂时无法查看)\n`; returnMessage += `[${e.sender?.nickname},id:${e.user_id}]发送了一张图片(你可能暂时无法查看)\n`;
} }
return returnMessage; return returnMessage;