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

@@ -23,6 +23,7 @@ class Public::Api::V1::Inboxes::ConversationsController < Public::Api::V1::Inbox
def update_last_seen
@conversation.contact_last_seen_at = DateTime.now.utc
@conversation.save!
::Conversations::MarkMessagesAsReadJob.perform_later(@conversation)
head :ok
end