mirror of
https://github.com/lingble/chatwoot.git
synced 2026-03-20 03:52:43 +00:00
feat: Create campaign conversation only if user interacts with the bubble (#2335)
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
@@ -7,8 +7,7 @@ const getCampaigns = async websiteToken => {
|
||||
return result;
|
||||
};
|
||||
|
||||
const triggerCampaign = async ({ campaignId }) => {
|
||||
const { websiteToken } = window.chatwootWebChannel;
|
||||
const triggerCampaign = async ({ campaignId, websiteToken }) => {
|
||||
const urlData = endPoints.triggerCampaign({ websiteToken, campaignId });
|
||||
|
||||
await API.post(
|
||||
|
||||
Reference in New Issue
Block a user