chore: Update MarkMessagesAsReadJob to accept delivered status (#8319)

This commit is contained in:
Muhsin Keloth
2023-11-09 03:14:57 +05:30
committed by GitHub
parent e0f33e62af
commit af7631d9f1
9 changed files with 45 additions and 27 deletions

View File

@@ -23,7 +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.id, @conversation.contact_last_seen_at)
::Conversations::UpdateMessageStatusJob.perform_later(@conversation.id, @conversation.contact_last_seen_at)
head :ok
end