Load images in messages automatically

This commit is contained in:
天クマ 2026-07-14 17:45:24 -03:00
commit 6af2d4a1ea
2 changed files with 31 additions and 12 deletions

5
app.js
View file

@ -265,8 +265,7 @@ async function sendMessage() {
tempBubble.id = responseData.id;
}
const meta = tempBubble.querySelector('.message-meta');
meta.innerHTML = `<span>${formatTime(new Date())}</span><i data-lucide="check" style="width:14px; height:14px;"></i>`;
lucide.createIcons();
meta.innerHTML = `<span>${formatTime(new Date())}</span><span style="width:14px; height:14px;" class="mif-done">`;
}
activeChatState.lastMessage = text;
@ -290,7 +289,7 @@ async function sendMessage() {
async function sendFileMessage(file) {
try {
console.log(await waha.sendFileMessage(activeChatState.id, file));
const result = await waha.sendFileMessage(activeChatState.id, file);
} catch (error) {
console.error(error.message);
}