Skip to content

Commit 2f6c9e7

Browse files
Arjona99Cristina Mariscalcmm-apliAllan GarciaAranGarcia
authored
Release 24.12.01 (#133)
* Fix | enforce event trigger * adding async * adding try catch * clear quick replies from vuex action (#131) * Fix | Rollback last change (#134) * Removed Alpine repository for vips * clear quick replies when new message arrives (#136) --------- Co-authored-by: Cristina Mariscal <[email protected]> Co-authored-by: cmm-apli <[email protected]> Co-authored-by: Allan Garcia <[email protected]> Co-authored-by: Allan Garcia <[email protected]>
1 parent 6b47679 commit 2f6c9e7

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

app/javascript/widget/store/modules/conversation/actions.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,13 @@ export const actions = {
148148
commit('clearConversations');
149149
},
150150

151-
addOrUpdateMessage: async ({ commit }, data) => {
151+
addOrUpdateMessage: async ({ commit, state }, data) => {
152152
const { id, content_attributes } = data;
153+
const { quickReplies } = state;
154+
// If there are quick replies active, remove them before showing the new message
155+
if (quickReplies.options.length > 0) {
156+
commit('setQuickRepliesOptions', []);
157+
}
153158
if (content_attributes && content_attributes.deleted) {
154159
commit('deleteMessage', id);
155160
return;

docker/Dockerfile

-4
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ ENV NODE_OPTIONS ${NODE_OPTIONS}
1818

1919
ENV BUNDLE_PATH="/gems"
2020

21-
RUN apk add --update --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/main vips
22-
2321
RUN apk update && apk add --no-cache \
2422
openssl \
2523
tar \
@@ -97,8 +95,6 @@ ARG RAILS_ENV=production
9795
ENV RAILS_ENV ${RAILS_ENV}
9896
ENV BUNDLE_PATH="/gems"
9997

100-
RUN apk add --update --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/main vips
101-
10298
RUN apk update && apk add --no-cache \
10399
build-base \
104100
openssl \

0 commit comments

Comments
 (0)