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

@@ -83,7 +83,7 @@ RSpec.describe 'Public Inbox Contact Conversations API', type: :request do
current_time = DateTime.now.utc
allow(DateTime).to receive(:now).and_return(current_time)
contact_last_seen_at = conversation.contact_last_seen_at
expect(Conversations::MarkMessagesAsReadJob).to receive(:perform_later).with(conversation.id, current_time)
expect(Conversations::UpdateMessageStatusJob).to receive(:perform_later).with(conversation.id, current_time)
post update_last_seen_path
expect(response).to have_http_status(:success)