File tree 2 files changed +6
-5
lines changed
app/javascript/widget/store/modules/conversation
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -148,8 +148,13 @@ export const actions = {
148
148
commit ( 'clearConversations' ) ;
149
149
} ,
150
150
151
- addOrUpdateMessage : async ( { commit } , data ) => {
151
+ addOrUpdateMessage : async ( { commit, state } , data ) => {
152
152
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
+ }
153
158
if ( content_attributes && content_attributes . deleted ) {
154
159
commit ( 'deleteMessage' , id ) ;
155
160
return ;
Original file line number Diff line number Diff line change @@ -18,8 +18,6 @@ ENV NODE_OPTIONS ${NODE_OPTIONS}
18
18
19
19
ENV BUNDLE_PATH="/gems"
20
20
21
- RUN apk add --update --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/main vips
22
-
23
21
RUN apk update && apk add --no-cache \
24
22
openssl \
25
23
tar \
@@ -97,8 +95,6 @@ ARG RAILS_ENV=production
97
95
ENV RAILS_ENV ${RAILS_ENV}
98
96
ENV BUNDLE_PATH="/gems"
99
97
100
- RUN apk add --update --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/main vips
101
-
102
98
RUN apk update && apk add --no-cache \
103
99
build-base \
104
100
openssl \
You can’t perform that action at this time.
0 commit comments