Open jker-org opened 1 month ago
@adashen : We worked all day to find a workaround for this issue. Unfortunately we have not been successful. A few things we learned on the way:
Focus of the text box is not the root cause. It appears to be random. 1 adaptive card is inserted fine in the compose area. If you remove this adaptive card and start again, the next adaptive card collapses. Sometimes, you need 2-3 attempts to see the effect.
In the network calls from dev tools we saw that the endpoint "messages" is only called when the card is successfully inserted into compose area. This call is missing when the card collapses. This seems to be an internal teams endpoint.
We removed the refresh capability of our adaptive card when it is posted the first time. Once the user interacts with the adaptive card, the refresh capability will be added again. No effect on the issue.
We have changed our bot so that the preview attribute in MessagingExtensionActionResponse (SubmitTask) is utilized. We tried a simple hero card as well as an adaptive card without action elements. No effect. We also learned that the preview element is not shown at all in the compose area. We will create a separate issue for this.
We tried everything imaginable from our side with no effect. It would be really great if you could priotize this issue as we think that this issue can only be resolved in Microsoft Teams. Users are already deserting our app.
Hi @jker-org, it seems a teams platform issue. So upstream issue is opened at https://github.com/MicrosoftDocs/msteams-docs/issues/11462 Please it there.
Describe the bug We have just published a new app to Microsoft Teams store. The app utilizes message extension feature and a bot from teams toolkit example. First users are complaining about something that most likely is a bug in the Teams app. You can reproduce the issue with our app: https://tinyurl.com/teams-issue-example-app . The link will expire automatically on 31th August 2024. Please do not share any screenshots of our app due to privacy. Thanks!
Our app gathers input from the user and returns an adaptive card for the message area. The user can then post the adaptive card to the chat. Under certain circumstances (see below), the adaptive cards collapses inside the message area and the user is forced to key in the data again. The users are already complaining to us, but it seems that this is a Teams bug that need to be fixed by Microsoft.
To Reproduce
Positive case (when it works):
Everything works fine in this case.
Negative case:
Our app produces a very powerful adaptive card (universal adaptive card) with refresh capabilities. Maybe the preview in the compose area can not handle this when there is no focus? We have no tested this with other apps as we don't know which apps also produce adaptive cards via message extension.
Expected behavior
The adaptive card must not collapse / disappear in the compose area when the control does not have the focus.
Actual behavior
The adaptive card collapses / disappears in the compose area when the control does not have the focus. This leads to a bad user experience for our users and forces them to gather their data again. In worst case, it can lead to users stop using our app.
VS Code Extension Information (please complete the following information):