fix: avoid threaded replies for agent output

This commit is contained in:
Peter Steinberger
2025-12-24 22:36:30 +01:00
parent 009fbeb543
commit cf8d1cf0e7
4 changed files with 9 additions and 34 deletions

View File

@@ -223,10 +223,10 @@ export async function monitorWebInbox(options: {
}
};
const reply = async (text: string) => {
await sock.sendMessage(chatJid, { text }, { quoted: msg });
await sock.sendMessage(chatJid, { text });
};
const sendMedia = async (payload: AnyMessageContent) => {
await sock.sendMessage(chatJid, payload, { quoted: msg });
await sock.sendMessage(chatJid, payload);
};
const timestamp = msg.messageTimestamp
? Number(msg.messageTimestamp) * 1000