We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e062ae8 + dcee40d commit 3de9387Copy full SHA for 3de9387
src/routes/chat/[agentId]/[conversationId]/chat-box.svelte
@@ -1179,8 +1179,8 @@
1179
async function confirmEditMsg() {
1180
isOpenEditMsgModal = false;
1181
const postback = buildPostback(truncateMsgId);
1182
- deleteConversationMessage(params.conversationId, truncateMsgId, true).then(resMessageId => {
1183
- sendChatMessage(editText, { postback: postback, inputMessageId: resMessageId }).then(() => {
+ deleteConversationMessage(params.conversationId, truncateMsgId, true).then(res => {
+ sendChatMessage(editText, { postback: postback, inputMessageId: res?.messageId }).then(() => {
1184
resetEditMsg();
1185
}).catch(() => {
1186
0 commit comments