chore: Adds hasConversation flag in chatwoot:on-start-conversation event (#8132)
This commit is contained in:
@@ -101,6 +101,7 @@ export default {
|
|||||||
IFrameHelper.sendMessage({
|
IFrameHelper.sendMessage({
|
||||||
event: 'onEvent',
|
event: 'onEvent',
|
||||||
eventIdentifier: CHATWOOT_ON_START_CONVERSATION,
|
eventIdentifier: CHATWOOT_ON_START_CONVERSATION,
|
||||||
|
data: { hasConversation: true },
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
async sendTranscript() {
|
async sendTranscript() {
|
||||||
|
|||||||
@@ -89,6 +89,7 @@ export default {
|
|||||||
IFrameHelper.sendMessage({
|
IFrameHelper.sendMessage({
|
||||||
event: 'onEvent',
|
event: 'onEvent',
|
||||||
eventIdentifier: CHATWOOT_ON_START_CONVERSATION,
|
eventIdentifier: CHATWOOT_ON_START_CONVERSATION,
|
||||||
|
data: { hasConversation: false },
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -62,6 +62,6 @@ window.addEventListener('chatwoot:on-message', function(e) {
|
|||||||
|
|
||||||
|
|
||||||
window.addEventListener('chatwoot:on-start-conversation', function(e) {
|
window.addEventListener('chatwoot:on-start-conversation', function(e) {
|
||||||
console.log('chatwoot:on-start-conversation')
|
console.log('chatwoot:on-start-conversation', e.detail)
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user