-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplication membersAdded event #4377
Comments
Thanks @Serginyo90, we are investigating. |
Hi @Serginyo90, Have you tried updating botbuilder sdk to latest version 4.17.1, to see if that might address this issue? |
Might be related to #4202 @Serginyo90, could you please try to update the javascript botbuilder sdk to latest version? |
@ramfattah I updated botbuilder and botbuilder-dialogs to 4.18.0 but issue still exists. |
here is example of code
|
Thanks for providing the code @Serginyo90, looking into this further. |
Thanks for your patience @Serginyo90, I was able to repro this issue after installing bot sample bot-conversation in Teams. sharing the steps to repro:
|
Hey @JuanAr, I was able to repro this issue. Assigned this to you for now. Please let me know if you have any questions. |
Hi @ramfattah . |
Thanks for checking on this @erquirogasw, The above screenshot was taken right after the bot app was installed in Teams. "membersAdded": [
{
"id": "xx:xxxxx...........................",
"aadObjectId": "xxxxxxxx..........."
}
], While investigating this issue; so far, I've found that the
Scenario #1 was not reproducible, whereas scenario #2 is reproducible. "membersAdded": [
{
"id": "29:1Iat8W8y5w9RxIgqFnDUqJlJalpDXC5jlXWG3hYzfczu25fn_gNbbc6WV7V36GbpgvQjpt8_w5nHuW_os7d",
"aadObjectId": "9272a828-5c43-4a1c-8a15-e315f8a8"
},
{
"id": "28:331df719-bfd2-4fcc-aa91-f08bc21a"
}
], Please let me know if I've done something incorrectly or if you have any questions. |
@ramfattah @erquirogasw main issue for me is I receive current event twice and sometime once. But usually twice. Did you able to reproduce it? |
Hi everyone, we couldn't reproduce the issue. If we install the app normally, we only receive the event once (with the two ids, user and bot, but that's expected). Thanks! |
@erquirogasw it is personal scope in both cases. |
Hi @Serginyo90, the other two requests we received are of type installationUpdate. They are not the same as MembersAdded. |
@erquirogasw Ok. I will prepare the code and share with you on Tuesday |
@erquirogasw You can find the sample bot here https://github.com/Serginyo90/issue-with-ms-bot . |
Hi @Serginyo90, we weren't able to reproduce the issue when installing the provided sample in Teams. We got the same outputs as before and the behavior seems to be the expected. The only difference we can think off is the app manifest. Could you share yours so we can compare and test it? |
Closing due to inactivity. @Serginyo90, please re-open if needed. |
@ramfattah @erquirogasw |
Hi @Serginyo90. We tested your manifest with the sample you provided both locally and in Azure, and the membersAdded event was received only once. |
@erquirogasw Ok. Looks like I found the issue. Just want to confirm that it triggers onMembersAdded and onConversationUpdate events when user installs the App. |
@erquirogasw so could you confirm that it triggers onMembersAdded and onConversationUpdate events when user installs the App, please? |
Hi @Serginyo90. When installed, it triggers the installationUpdate and conversationUpdate (containing membersAdded info) events. |
@erquirogasw thank you. I will rewrite logic using installationUpdate type. |
@erquirogasw I can confirm that installationUpdate also triggered twice. The same like conversationUpdate. So issue still exists |
Hi @ramfattah @Serginyo90 .
In both scenarios, we could see 2 requests. One with activityType installationUpdate and another with activityType conversationUpdate. |
Version
JavaScript "botbuilder": "4.14.0",
Describe the bug
Give a clear and concise description of what the bug is.
We receive 2 or 4 events when user installs our application.
Expected behavior
Receive event once
Additional context
Do you have any ideas how we can receive event only once?
The text was updated successfully, but these errors were encountered: