fix: avoid threaded replies for agent output
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -112,11 +112,6 @@ describe("web monitor inbox", () => {
|
||||
expect(sock.sendMessage).toHaveBeenCalledWith(
|
||||
"999@s.whatsapp.net",
|
||||
{ text: "pong" },
|
||||
{
|
||||
quoted: expect.objectContaining({
|
||||
key: expect.objectContaining({ id: "abc" }),
|
||||
}),
|
||||
},
|
||||
);
|
||||
|
||||
await listener.close();
|
||||
@@ -200,11 +195,6 @@ describe("web monitor inbox", () => {
|
||||
expect(sock.sendMessage).toHaveBeenCalledWith(
|
||||
"999@s.whatsapp.net",
|
||||
{ text: "pong" },
|
||||
{
|
||||
quoted: expect.objectContaining({
|
||||
key: expect.objectContaining({ id: "abc" }),
|
||||
}),
|
||||
},
|
||||
);
|
||||
|
||||
await listener.close();
|
||||
|
||||
Reference in New Issue
Block a user