Compare commits

...
Author SHA1 Message Date
Shivam Mishra 6f2e5abdda fix: don't check for source id 2025-03-03 15:54:02 +05:30
@@ -49,7 +49,7 @@ const isSent = computed(() => {
isASmsInbox.value || isASmsInbox.value ||
isATelegramChannel.value isATelegramChannel.value
) { ) {
return sourceId.value && status.value === MESSAGE_STATUS.SENT; return status.value === MESSAGE_STATUS.SENT;
} }
// All messages will be mark as sent for the Line channel, as there is no source ID. // All messages will be mark as sent for the Line channel, as there is no source ID.
@@ -67,7 +67,7 @@ const isDelivered = computed(() => {
isASmsInbox.value || isASmsInbox.value ||
isAFacebookInbox.value isAFacebookInbox.value
) { ) {
return sourceId.value && status.value === MESSAGE_STATUS.DELIVERED; return status.value === MESSAGE_STATUS.DELIVERED;
} }
// All messages marked as delivered for the web widget inbox and API inbox once they are sent. // All messages marked as delivered for the web widget inbox and API inbox once they are sent.
if (isAWebWidgetInbox.value || isAPIInbox.value) { if (isAWebWidgetInbox.value || isAPIInbox.value) {
@@ -88,7 +88,7 @@ const isRead = computed(() => {
isATwilioChannel.value || isATwilioChannel.value ||
isAFacebookInbox.value isAFacebookInbox.value
) { ) {
return sourceId.value && status.value === MESSAGE_STATUS.READ; return status.value === MESSAGE_STATUS.READ;
} }
if (isAWebWidgetInbox.value || isAPIInbox.value) { if (isAWebWidgetInbox.value || isAPIInbox.value) {