diff --git a/app/javascript/dashboard/components-next/message/MessageMeta.vue b/app/javascript/dashboard/components-next/message/MessageMeta.vue index 1b0947e6d..f26339cbb 100644 --- a/app/javascript/dashboard/components-next/message/MessageMeta.vue +++ b/app/javascript/dashboard/components-next/message/MessageMeta.vue @@ -67,6 +67,9 @@ const isSent = computed(() => { return sourceId.value && status.value === MESSAGE_STATUS.SENT; } + // API inbox messages use real sent/delivered/read status values from the external system. + if (isAPIInbox.value) return status.value === MESSAGE_STATUS.SENT; + // All messages will be mark as sent for the Line channel, as there is no source ID. if (isALineChannel.value) return true; @@ -86,8 +89,10 @@ const isDelivered = computed(() => { ) { return sourceId.value && status.value === MESSAGE_STATUS.DELIVERED; } - // All messages marked as delivered for the web widget inbox and API inbox once they are sent. - if (isAWebWidgetInbox.value || isAPIInbox.value) { + // API inbox messages use real delivered status from the external system. + if (isAPIInbox.value) return status.value === MESSAGE_STATUS.DELIVERED; + // All messages marked as delivered for the web widget inbox once they are sent. + if (isAWebWidgetInbox.value) { return status.value === MESSAGE_STATUS.SENT; } if (isALineChannel.value) {