chore: Add event for conversations transferred to Bot (#2167)
* chore: Event for conversation transferred to Bot Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com> Co-authored-by: Nithin David <webofnithin@gmail.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class MigrationRemoveLockedFromConversation < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
remove_column :conversations, :locked, :boolean
|
||||
end
|
||||
end
|
||||
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2021_03_15_101919) do
|
||||
ActiveRecord::Schema.define(version: 2021_04_26_191914) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "pg_stat_statements"
|
||||
@@ -229,7 +229,6 @@ ActiveRecord::Schema.define(version: 2021_03_15_101919) do
|
||||
t.integer "display_id", null: false
|
||||
t.datetime "contact_last_seen_at"
|
||||
t.datetime "agent_last_seen_at"
|
||||
t.boolean "locked", default: false
|
||||
t.jsonb "additional_attributes", default: {}
|
||||
t.bigint "contact_inbox_id"
|
||||
t.uuid "uuid", default: -> { "gen_random_uuid()" }, null: false
|
||||
|
||||
@@ -31,7 +31,7 @@ unless Rails.env.production?
|
||||
inbox = Inbox.create!(channel: web_widget, account: account, name: 'Acme Support')
|
||||
InboxMember.create!(user: user, inbox: inbox)
|
||||
|
||||
contact = Contact.create!(name: 'jane', email: 'jane@example.com', phone_number: '0000', account: account)
|
||||
contact = Contact.create!(name: 'jane', email: 'jane@example.com', phone_number: '+2320000', account: account)
|
||||
contact_inbox = ContactInbox.create!(inbox: inbox, contact: contact, source_id: user.id, hmac_verified: true)
|
||||
conversation = Conversation.create!(
|
||||
account: account,
|
||||
|
||||
Reference in New Issue
Block a user