chore: Update onMessage event to include conversation id (#7497)

This commit is contained in:
Pranav Raj S
2023-07-10 15:04:31 -07:00
committed by GitHub
parent 332ab5888c
commit 09f46aa912
6 changed files with 85 additions and 9 deletions

View File

@@ -25,7 +25,7 @@ describe Integrations::Dyte::ProcessorService do
it 'creates an integration message in the conversation' do
response = processor.create_a_meeting(agent)
expect(response['content']).to eq("#{agent.available_name} has started a meeting")
expect(response[:content]).to eq("#{agent.available_name} has started a meeting")
expect(conversation.reload.messages.last.content_type).to eq('integrations')
end
end