Skip to content

[Bug]: File share links not present in MessageActivity #487

Description

@Maxi-J

Bug Description

When the user attaches a file in teams - in the 1:1 chat with the Teams app - and that file is from some file share (SharePoint or OneDrive; like the file suggestions when clicking on the clip in Teams) and not a file from the local computer, there is nothing whatsoever in the MessageActivity context present. Not in ctx.attachment or otherwise. Therefore, these attachments are completely invisible to the Teams app. For local files all works as expected.

Steps to Reproduce

  1. Set up a message input hook
  2. Attach a file from a file share like OneDrive or SharePoint that Teams probably automatically sends more as reference than as a file I'd assume
  3. Check ctx.attachment and see there is nothing but the text message the user put in along with the attachment

Expected Behavior

The attached file is present in ctx.attachment like with locally uploaded files.

Actual Behavior

No trace of any attachment is present whatsoever.

SDK Version

2.0.13.4

Python Version

3.14.6

Additional Context

The environment is an business setup with SSO for SharePoint, OneDrive, Teams etc and is connected together - in case that changes things.
If you need debug logs or something - feel free to let me know and how to get the information you need.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions