diff --git a/app/javascript/widget/store/modules/conversation/actions.js b/app/javascript/widget/store/modules/conversation/actions.js index b3f46f2d1f60d..8cf199d411ee6 100644 --- a/app/javascript/widget/store/modules/conversation/actions.js +++ b/app/javascript/widget/store/modules/conversation/actions.js @@ -148,8 +148,13 @@ export const actions = { commit('clearConversations'); }, - addOrUpdateMessage: async ({ commit }, data) => { + addOrUpdateMessage: async ({ commit, state }, data) => { const { id, content_attributes } = data; + const { quickReplies } = state; + // If there are quick replies active, remove them before showing the new message + if (quickReplies.options.length > 0) { + commit('setQuickRepliesOptions', []); + } if (content_attributes && content_attributes.deleted) { commit('deleteMessage', id); return;