feat: Add delivery reports for API channel (#8116)

This commit is contained in:
Muhsin Keloth
2023-10-18 10:11:13 +05:30
committed by GitHub
parent eabe548520
commit 04c874fe35
3 changed files with 4 additions and 2 deletions

View File

@@ -214,8 +214,8 @@ export default {
if (this.isAWhatsAppChannel || this.isATwilioChannel) {
return this.sourceId && this.isDelivered;
}
// We will consider messages as delivered for web widget inbox if they are sent
if (this.isAWebWidgetInbox) {
// We will consider messages as delivered for web widget inbox and API inbox if they are sent
if (this.isAWebWidgetInbox || this.isAPIInbox) {
return this.isSent;
}