Skip to content

Instantly share code, notes, and snippets.

@plehoux plehoux/demo.js Secret
Created Mar 5, 2019

Embed
What would you like to do?
Missive.on('change:conversations', (ids) => {
Missive.fetchConversation(ids, ['authors','latest_message']).then((conversations) => {
if (conversations.length != 1) {
// Do nothing if multiple conversations are selected.
return
}
let addressFields = Missive.getEmailAddresses(conversations[0])
for (let addressField of addressFields) {
let { address, name } = addressField
console.log(name, address)
// Code could ignore your own business domain name
// Code could query your backend & update the iframe content
}
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.