Skip to content

Link unfurling fails because of missing conversationType #158

@jdite

Description

@jdite

I implemented the link unfurling example code in my project.
This works for unfurling links pasted in chats, but when I call the sharing feature from @microsoft/teams-js it breaks.

sharing.shareWebContent({
    content: [{
        url: sharingUrl,
        type: 'URL',
        message: `Take a look at this item`,
        preview: true,
    }]
});

This should show a unfurled preview like so:

Image

But that doesn't work because in the request payload sent to the bot the Conversation.ConversationType is missing.
But in a chat the ConversationType is "groupChat" and it works.

JSON deserialization for type 'Microsoft.Teams.Api.Conversation' was missing required properties including: 'conversationType'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions