OfficeDev / Microsoft-Teams-Samples

Welcome to the Microsoft Teams samples repository. Here you will find task-focused samples in C#, JavaScript and TypeScript to help you get started with the Microsoft Teams App!
MIT License
916 stars 732 forks source link

Two chat windows are getting created for MS Teams Bot when installing the bot for the first time. #1304

Closed sapnaavya closed 2 weeks ago

sapnaavya commented 1 month ago

When user clicks on add button on the app to install the bot under Built for your org tab, it creates two chat windows in the recent section in MS Teams for that Bot. In those recent chats, one chat window stays in the draft mode, and disappears after some time or when we click on that draft chat. Is this expected behavior?

Meghana-MSFT commented 1 month ago

@sapnaavya - We checked this at our end, and we are not able to repro this issue. Could you please let us know if you are facing this issue with any specific store app or your custom app? Are you facing this issue with one bot or all other bots as well. Could you please share more inputs so that we can try to have a repro.

sapnaavya commented 1 month ago

we are seeing this issue only for our bot. When user tries to install the bot, we send thank you message and authenticate the user by using SSO. We followed the steps to enable SSO on this page: https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/authentication/bot-sso-overview and when user signs in successfully, we send other messages. However, in this process, sometime, we have seen our bot is creating two chats window and one chat remain in draft mode and it goes away in some time or unless we click on it. See below screenshot: image (1)

Meghana-MSFT commented 3 weeks ago

We checked this at our end, and we are not able to repro this issue. Could you please share the deployed manifest with us so that we can check if we have a local repro. Please share manifest at microsoftteamsdev@microsoft.com.

microsoft-github-policy-service[bot] commented 2 weeks ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 3 days. It will be closed if no further activity occurs within 3 days of this comment.