microsoft / AdaptiveCards

A new way for developers to exchange card content in a common and consistent way.
https://adaptivecards.io
MIT License
1.74k stars 543 forks source link

[Rendering] Mentions break on refresh action (manual trigger) #8832

Open fffffatah opened 6 months ago

fffffatah commented 6 months ago

Target Platforms

NodeJS

SDK Version

2.10.0

Application Name

Microsoft Teams

Problem Description

Mentions break on refresh action. 'userIds' are included in the refresh in this case, and refresh action is triggered using manual trigger. The initial card renders correctly. To reproduce the issue,

Screenshots

image

Card JSON

{
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "version": "1.5",
  "type": "AdaptiveCard",
  "body": [
    {
      "type": "TextBlock",
      "text": "<at>User1</at>, <at>User2</at>"
    }
  ],
  "msteams": {
    "entities": [
      {
        "type": "mention",
        "text": "<at>User1</at>",
        "mentioned": {
          "id": "8:orgid:<EntraId>",
          "name": "User1"
          "aadObjectId": <EntraId>
        }
      },
      {
        "type": "mention",
        "text": "<at>User2</at>",
        "mentioned": {
          "id": "8:orgid:<EntraId>",
          "name": "User2"
          "aadObjectId": <EntraId>
        }
      }
    ]
  }
}

Sample Code Language

No response

Sample Code

No response

theentropic commented 1 month ago

I believe this is also true for messaging extensions.

Screenshots

image

Card JSON

{
    "$schema": "https://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.5",
    "type": "AdaptiveCard",
    "body": [
        {
            "type": "TextBlock",
            "text": "<at>Adele Vance</at>, <at>Isaiah Langer</at>, <at>Kallen (Stadtfeld) Kozuki</at>"
        }
    ],
    "msteams": {
        "entities": [
            {
                "type": "mention",
                "text": "<at>Adele Vance</at>",
                "mentioned": {
                    "id": "<entraId>",
                    "name": "Adele Vance"
                }
            },
            {
                "type": "mention",
                "text": "<at>Isaiah Langer</at>",
                "mentioned": {
                    "id": "<entraId>",
                    "name": "Isaiah Langer"
                }
            },
            {
                "type": "mention",
                "text": "<at>Kallen (Stadtfeld) Kozuki</at>",
                "mentioned": {
                    "id": "<entraId>",
                    "name": "Kallen (Stadtfeld) Kozuki"
                }
            }
        ]
    }
}