integrations / microsoft-teams

Bringing your code and work to the conversations you care about with the GitHub and Microsoft integration
443 stars 97 forks source link

Flickering & Loading issue with adaptive card while unfurling link in teams channel #184

Closed Abhiram219 closed 2 years ago

Abhiram219 commented 2 years ago

Describe the bug While link unfurls in the teams channel and if the response is an adaptive card, the card is not rendering as expected. Please see the video attached for the behavior. At 0.05 sec in the video attached, the card has loaded but it is not displayed, just a new empty line is added. The issue is observed only with adaptive cards, working as expected with hero and thumbnail cards. Also in 1-1 and group chats, this is working as expected.

Above behavior is when the card is loaded for the first time.

If the card is loaded from cache, card flickering is seen. ie, card appears in the compose box and disappears within a snap.

The complete behaviour can be seen in video attached

To Reproduce Steps to reproduce the behavior:

  1. Login to Microsoft teams tenant.
  2. Install a custom bot with link-unfurling enabled.
  3. Go to the “teams” menu and open a channel.
  4. Now try to paste the link to unfurl as “New conversation”.
  5. Observe there is flickering that happens while trying to render the link.
  6. The adaptive card does not show up at all (a new line is being added).
  7. But the card loads after the message is sent.

Expected behavior The card is expected to be loaded in the compose box as in group and 1-1 chats.

Screenshots https://user-images.githubusercontent.com/60126553/146521088-780f1d46-cfb5-4cd3-aff8-0eca83d94277.mov

Desktop (please complete the following information):