chore: Adds hasConversation flag in chatwoot:on-start-conversation event (#8132)

This commit is contained in:
Pranav Raj S
2023-10-18 04:54:00 +05:30
committed by GitHub
parent c20415f3ba
commit d3bf828524
3 changed files with 3 additions and 1 deletions

View File

@@ -101,6 +101,7 @@ export default {
IFrameHelper.sendMessage({
event: 'onEvent',
eventIdentifier: CHATWOOT_ON_START_CONVERSATION,
data: { hasConversation: true },
});
},
async sendTranscript() {

View File

@@ -89,6 +89,7 @@ export default {
IFrameHelper.sendMessage({
event: 'onEvent',
eventIdentifier: CHATWOOT_ON_START_CONVERSATION,
data: { hasConversation: false },
});
}
},

View File

@@ -62,6 +62,6 @@ window.addEventListener('chatwoot:on-message', 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>