feat: Add delivery reports for live chat (#8092)

This commit is contained in:
Muhsin Keloth
2023-10-12 20:48:20 +05:30
committed by GitHub
parent 5c729ccea5
commit 980013abae
5 changed files with 80 additions and 0 deletions

View File

@@ -170,6 +170,7 @@ RSpec.describe '/api/v1/widget/conversations/toggle_typing', type: :request do
it 'returns the correct conversation params' do
allow(Rails.configuration.dispatcher).to receive(:dispatch)
expect(conversation.contact_last_seen_at).to be_nil
expect(Conversations::MarkMessagesAsReadJob).to receive(:perform_later).with(conversation)
post '/api/v1/widget/conversations/update_last_seen',
headers: { 'X-Auth-Token' => token },