Skip to content

[BUG] Teams + React + picture in the chat #1486

Description

@piotrlech

Describe the bug
I think there might be a problem with the newest mgt-react and "<Get" of https://graph.microsoft.com/beta
/chats/{chats-id}/messages/{messages-id}/hostedContents/{hostedContents-id}/$value

In the version 2.2.0 it brings a blob of a picture, while version 2.3.1 brings nothing

To Reproduce
Steps to reproduce the behavior:
The code like below stopped delivering the blob of the picture in the newest version:
const MyPic = (props) => {
let attr = props.attr;
attr.src = 'https://graph.microsoft.com/beta/chats/{chatId}/messages/{messageId}/hostedContents/{picture}/$value'
let res = '/chats/{chatId}/messages/{messageId}/hostedContents/{picture}/$value';
return <Get version="beta" resource={res}>
<MyTemplate />
</Get>
};

Additional context
It used to work in version 2.2.0, and it still works in the Graph Explorer

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Done ✔️

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions