Open anshal21 opened 3 years ago
As per the conversation model documentation here https://developers.intercom.com/intercom-api-reference/reference#conversation-model It does not have any field with the name conversation_message and there is no such field available in the response as well
conversation
conversation_message
Though as per the code comments
// A ConversationMessage is the message that started the conversation rendered for presentation
Which maps to the source field mentioned in the documentation
source
The Conversation Part that originated this conversation, which can be Contact, Admin, Campaign, Automated or Operator initiated.
Based on this, we should be populating the ConversationMessage struct from the source field in the response
Technical details on your change
ConversationMessage
Conversation
Why?
As per the
conversation
model documentation here https://developers.intercom.com/intercom-api-reference/reference#conversation-model It does not have any field with the nameconversation_message
and there is no such field available in the response as wellThough as per the code comments
// A ConversationMessage is the message that started the conversation rendered for presentation
Which maps to the
source
field mentioned in the documentationThe Conversation Part that originated this conversation, which can be Contact, Admin, Campaign, Automated or Operator initiated.
Based on this, we should be populating the ConversationMessage struct from the
source
field in the responseHow?
Technical details on your change
ConversationMessage
field in theConversation
struct fromconversation_message
tosource
, which fixes the issue