Skip to content

Commit

Permalink
Fix | Rollback last change (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arjona99 authored Mar 25, 2024
1 parent 06fe8b2 commit 71f394e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions app/javascript/widget/store/modules/conversation/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,8 @@ export const actions = {
commit('clearConversations');
},

addOrUpdateMessage: async ({ commit, state }, data) => {
addOrUpdateMessage: async ({ commit }, 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;
Expand Down

0 comments on commit 71f394e

Please sign in to comment.