diff --git a/Gemfile.lock b/Gemfile.lock index 45c54bd46..fa45d1e89 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -186,7 +186,7 @@ GEM database_cleaner-core (2.0.1) datadog-ci (0.8.3) msgpack - date (3.3.4) + date (3.4.1) ddtrace (1.23.2) datadog-ci (~> 0.8.1) debase-ruby_core_source (= 3.3.1) @@ -487,7 +487,7 @@ GEM uri net-http-persistent (4.0.2) connection_pool (~> 2.2) - net-imap (0.4.17) + net-imap (0.4.19) date net-protocol net-pop (0.1.2) @@ -782,7 +782,7 @@ GEM time_diff (0.3.0) activesupport i18n - timeout (0.4.1) + timeout (0.4.3) trailblazer-option (0.1.2) twilio-ruby (5.77.0) faraday (>= 0.9, < 3.0) diff --git a/VERSION_CWCTL b/VERSION_CWCTL index fd2a01863..944880fa1 100644 --- a/VERSION_CWCTL +++ b/VERSION_CWCTL @@ -1 +1 @@ -3.1.0 +3.2.0 diff --git a/app/javascript/dashboard/components-next/NewConversation/components/ActionButtons.vue b/app/javascript/dashboard/components-next/NewConversation/components/ActionButtons.vue index 4df1e87be..244ce0653 100644 --- a/app/javascript/dashboard/components-next/NewConversation/components/ActionButtons.vue +++ b/app/javascript/dashboard/components-next/NewConversation/components/ActionButtons.vue @@ -77,7 +77,7 @@ const toggleMessageSignature = () => { setSignature(); }; -// Added this watch to dynamically set signature. +// Added this watch to dynamically set signature on target inbox change. // Only targetInbox has value and is Advance Editor(used by isEmailOrWebWidgetInbox) // Set the signature only if the inbox based flag is true watch( @@ -86,7 +86,8 @@ watch( nextTick(() => { if (newValue && props.isEmailOrWebWidgetInbox) setSignature(); }); - } + }, + { immediate: true } ); const onClickInsertEmoji = emoji => { diff --git a/app/javascript/dashboard/components-next/message/MessageList.vue b/app/javascript/dashboard/components-next/message/MessageList.vue index 505e5c03b..44b317c56 100644 --- a/app/javascript/dashboard/components-next/message/MessageList.vue +++ b/app/javascript/dashboard/components-next/message/MessageList.vue @@ -15,18 +15,14 @@ import { useCamelCase } from 'dashboard/composables/useTransformKeys'; * @property {Array} messages - Array of all messages [These are not in camelcase] */ const props = defineProps({ - readMessages: { - type: Array, - default: () => [], - }, - unReadMessages: { - type: Array, - default: () => [], - }, currentUserId: { type: Number, required: true, }, + firstUnreadId: { + type: Number, + default: null, + }, isAnEmailChannel: { type: Boolean, default: false, @@ -41,12 +37,8 @@ const props = defineProps({ }, }); -const unread = computed(() => { - return useCamelCase(props.unReadMessages, { deep: true }); -}); - -const read = computed(() => { - return useCamelCase(props.readMessages, { deep: true }); +const allMessages = computed(() => { + return useCamelCase(props.messages, { deep: true }); }); /** @@ -108,26 +100,18 @@ const getInReplyToMessage = parentMessage => {