examples/basic-services/conversation-delete.js
function getDescription(conversation) {
    if (conversation.metadata.conversationersationName) {
      return 'The Conversation ' + conversation.metadata.conversationersationName + ' has been deleted';
    } else {
      return 'The Conversation with ' +
        conversation.participants.join(', ').replace(/(.*),(.*)/, '$1 and$2') +
        ' has been deleted';
    }
  }
function getDescription(conversation) {
    if (conversation.metadata.conversationersationName) {
      return 'The Conversation ' + conversation.metadata.conversationersationName + ' has been deleted';
    } else {
      return 'The Conversation with ' +
        conversation.participants.join(', ').replace(/(.*),(.*)/, '$1 and$2') +
        ' has been deleted';
    }
  }
function getDescription ( conversation ) { if ( conversation . metadata . conversationersationName ) { return 'The Conversation ' + conversation . metadata . conversationersationName + ' has been deleted' ; } else { return 'The Conversation with ' + conversation . participants . join ( ', ' ) . replace ( / (.*),(.*) / , '$1 and$2' ) + ' has been deleted' ; } }
Return a message body describing the deletion
Return a message body describing the deletion