feat: Add sender details and message create date in the attachment API (#7308)

This commit is contained in:
Muhsin Keloth
2023-06-14 17:29:13 +05:30
committed by GitHub
parent 8b91f0ffac
commit 6eb4fa41ff
2 changed files with 11 additions and 1 deletions

View File

@@ -753,6 +753,7 @@ RSpec.describe 'Conversations API', type: :request do
expect(response).to have_http_status(:success)
response_body = response.parsed_body
expect(response_body['payload'].first['file_type']).to eq('image')
expect(response_body['payload'].first['sender']['id']).to eq(conversation.messages.last.sender.id)
end
it 'return the attachments if you are an agent with access to inbox' do