diff --git a/app/javascript/dashboard/components/widgets/conversation/MessagesView.vue b/app/javascript/dashboard/components/widgets/conversation/MessagesView.vue index 682e503d9..1d265d03b 100644 --- a/app/javascript/dashboard/components/widgets/conversation/MessagesView.vue +++ b/app/javascript/dashboard/components/widgets/conversation/MessagesView.vue @@ -65,7 +65,7 @@ :is-web-widget-inbox="isAWebWidgetInbox" /> { + this.messageSentSinceOpened = true; + }); }, mounted() { diff --git a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue index c96afedd6..56b7badcb 100644 --- a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue +++ b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue @@ -755,6 +755,7 @@ export default { messagePayload ); bus.$emit(BUS_EVENTS.SCROLL_TO_MESSAGE); + bus.$emit(BUS_EVENTS.MESSAGE_SENT); this.removeFromDraft(); } catch (error) { const errorMessage = diff --git a/app/javascript/shared/constants/busEvents.js b/app/javascript/shared/constants/busEvents.js index 6456842e9..6c9a21072 100644 --- a/app/javascript/shared/constants/busEvents.js +++ b/app/javascript/shared/constants/busEvents.js @@ -4,6 +4,7 @@ export const BUS_EVENTS = { START_NEW_CONVERSATION: 'START_NEW_CONVERSATION', FOCUS_CUSTOM_ATTRIBUTE: 'FOCUS_CUSTOM_ATTRIBUTE', SCROLL_TO_MESSAGE: 'SCROLL_TO_MESSAGE', + MESSAGE_SENT: 'MESSAGE_SENT', FETCH_LABEL_SUGGESTIONS: 'FETCH_LABEL_SUGGESTIONS', TOGGLE_SIDEMENU: 'TOGGLE_SIDEMENU', ON_MESSAGE_LIST_SCROLL: 'ON_MESSAGE_LIST_SCROLL',