fix: Agent typing indicator for website widget (#4495)

When we migrated the pubsub tokens from contact to contact inboxes, we missed out on doing this update for the typing indicator events. Hence the agent typing events weren't visible on the widget side. This change fixes that and removes the necessary column contact pubsub token from the model.

fixes: #4476
This commit is contained in:
Sojan Jose
2022-04-18 19:05:45 +05:30
committed by GitHub
parent 17fb6b8d55
commit 615a575bdd
7 changed files with 30 additions and 16 deletions

View File

@@ -17,8 +17,5 @@ RSpec.describe DataImportJob, type: :job do
expect(data_import.account.contacts.count).to eq(csv_length)
expect(data_import.reload.total_records).to eq(csv_length)
expect(data_import.reload.processed_records).to eq(csv_length)
# should generate pubsub tokens for contacts
expect(data_import.account.contacts.last.pubsub_token).present?
end
end