mirror of
https://github.com/lingble/chatwoot.git
synced 2026-03-20 03:52:43 +00:00
This PR ensures that only conversations from quick conversation channels are resolved, avoiding resolutions on the email channel (we still need to improve the UX here). It also updates the FAQ generation logic, limiting it to conversations that had at least one human interaction.
19 lines
380 B
Ruby
19 lines
380 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :inbox do
|
|
account
|
|
channel { FactoryBot.build(:channel_widget, account: account) }
|
|
name { 'Inbox' }
|
|
|
|
after(:create) do |inbox|
|
|
inbox.channel.save!
|
|
end
|
|
|
|
trait :with_email do
|
|
channel { FactoryBot.build(:channel_email, account: account) }
|
|
name { 'Email Inbox' }
|
|
end
|
|
end
|
|
end
|