diff --git a/app/javascript/widget/components/ChatFooter.vue b/app/javascript/widget/components/ChatFooter.vue index 841b37216..2bc6ba7ec 100755 --- a/app/javascript/widget/components/ChatFooter.vue +++ b/app/javascript/widget/components/ChatFooter.vue @@ -55,15 +55,8 @@ export default { emitter.on(BUS_EVENTS.TOGGLE_REPLY_TO_MESSAGE, this.toggleReplyTo); }, methods: { - ...mapActions('conversation', [ - 'sendMessage', - 'sendAttachment', - 'clearConversations', - ]), - ...mapActions('conversationAttributes', [ - 'getAttributes', - 'clearConversationAttributes', - ]), + ...mapActions('conversation', ['sendMessage', 'sendAttachment']), + ...mapActions('conversationAttributes', ['getAttributes']), async handleSendMessage(content) { await this.sendMessage({ content, @@ -84,8 +77,6 @@ export default { this.inReplyTo = null; }, startNewConversation() { - this.clearConversations(); - this.clearConversationAttributes(); this.replaceRoute('prechat-form'); IFrameHelper.sendMessage({ event: 'onEvent', diff --git a/app/javascript/widget/views/PreChatForm.vue b/app/javascript/widget/views/PreChatForm.vue index 8eac55808..ca25b47e4 100644 --- a/app/javascript/widget/views/PreChatForm.vue +++ b/app/javascript/widget/views/PreChatForm.vue @@ -1,4 +1,5 @@