From 1f6d9d8dfc1f06d3ba22eb70c5f6757c1ede58c4 Mon Sep 17 00:00:00 2001 From: Jicheng Lu <103353@smsassist.com> Date: Wed, 21 Feb 2024 16:07:21 -0600 Subject: [PATCH] remove file --- .../[conversationId]/chat-box.svelte | 9 ---- .../messageComponents/rc-dummy.svelte | 43 ------------------- 2 files changed, 52 deletions(-) delete mode 100644 src/routes/chat/[agentId]/[conversationId]/messageComponents/rc-dummy.svelte diff --git a/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte b/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte index cedcdaf9..e8746152 100644 --- a/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte +++ b/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte @@ -36,7 +36,6 @@ import Swal from 'sweetalert2/dist/sweetalert2.js'; import "sweetalert2/src/sweetalert2.scss"; import moment from 'moment'; - import RcDummy from './messageComponents/rc-dummy.svelte'; const options = { scrollbars: { @@ -177,13 +176,6 @@ /** @param {import('$types').ChatResponseModel} message */ function onMessageReceivedFromAssistant(message) { // webSpeech.utter(message.text); - // clean rich content elements - dialogs.forEach(dialog => { - if (dialog.rich_content && dialog.rich_content.message.rich_type == "quick_reply") { - dialog.rich_content.message.quick_replies = []; - } - }); - dialogs.push(message); refresh(); } @@ -612,7 +604,6 @@ {/if} - {/if} diff --git a/src/routes/chat/[agentId]/[conversationId]/messageComponents/rc-dummy.svelte b/src/routes/chat/[agentId]/[conversationId]/messageComponents/rc-dummy.svelte deleted file mode 100644 index ba405c0a..00000000 --- a/src/routes/chat/[agentId]/[conversationId]/messageComponents/rc-dummy.svelte +++ /dev/null @@ -1,43 +0,0 @@ - - -
-
- {@html replaceNewLine(message?.text || '')} -
-
- -{#if displayOptions && options?.length > 0} - -{/if} \ No newline at end of file