chore: fix broken browser client

This commit is contained in:
Daniel Avila 2023-03-20 00:51:56 -04:00
parent b0936fa322
commit 0af8f6a699

View file

@ -24,6 +24,10 @@ const browserClient = async ({ text, onProgress, convo, abortController }) => {
options = { ...options, ...convo };
}
if (convo.parentMessageId.startsWith('0000')) {
delete options.conversationId;
}
const res = await client.sendMessage(text, options);
return res;
};