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