How to display message content correctly in group conversations?

I am trying to use the Microsoft Graph API to display information about the groups a user is in. Specifically, I want to download the latest posts from threads in a group.

API call GET / groups / {id} / threads / {id} / posts / {id} , I get a json that has a body property containing the post html.

The problem occurs when the message contains emoji. They are displayed as follows:

<img explicitlogon="group-name@tenant.onmicrosoft.com" 
     src="cid:5f456809-0c51-4717-a69d-50d6d3c5657b" 
     alt="🙈" 
     id="OWAEmoji518229">

      

So, in the context of an external web application using the Graph API, what is the recommended way to display it? Is there a way to enable src for something useful?

+3


source to share


1 answer


These are inline attachments. You have to pull the message attachments and the src id will match one of the attachment names. You resolve it like this.



0


source







All Articles