chore: Add open conversation option (#11828)
Added conversation_status, assignee_id, team_id, and priority to the message_created event to allow users to build automations based on conversation details. Also introduced a new open_conversation action. --------- Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
This commit is contained in:
@@ -14,6 +14,17 @@ describe ActionService do
|
||||
end
|
||||
end
|
||||
|
||||
describe '#open_conversation' do
|
||||
let(:conversation) { create(:conversation, status: :resolved) }
|
||||
let(:action_service) { described_class.new(conversation) }
|
||||
|
||||
it 'opens the conversation' do
|
||||
expect(conversation.status).to eq('resolved')
|
||||
action_service.open_conversation(nil)
|
||||
expect(conversation.reload.status).to eq('open')
|
||||
end
|
||||
end
|
||||
|
||||
describe '#change_priority' do
|
||||
let(:conversation) { create(:conversation) }
|
||||
let(:action_service) { described_class.new(conversation) }
|
||||
|
||||
Reference in New Issue
Block a user