Closed jnaglis closed 1 year ago
Thanks @jnaglis, I'm looking into this.
Hi @jnaglis,
are you removing the app in Teams application or Teams Admin Center portal?
Hi @ramfattah, In Teams application.
Hi @jnaglis,
For uninstallation in the personal scope, the "Install update event" is triggered, aligning with the official Teams documentation. It appears this behavior is by design.
Please refer to the Uninstall behavior for personal app with bot for more details.
Example:
protected override async Task OnInstallationUpdateActivityAsync(ITurnContext<IInstallationUpdateActivity> turnContext, CancellationToken cancellationToken)
{
var activity = turnContext.Activity;
if (string.Equals(activity.Action, "Add", StringComparison.InvariantCultureIgnoreCase))
{
// TO:DO Installation workflow.
}
else
{
// TO:DO Uninstallation workflow.
}
return;
}
Describe the bug
When app is removed from personal scope OnTeamsMembersRemovedAsync is not called. In some cases has been observed that also OnInstallationUpdateAddAsync and OnTeamsMembersAddedAsync called after removing app from personal scope.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
OnMembersRemovedAsync called after app removed from personal scope. And not OnInstallationUpdateAddAsync and OnTeamsMembersAddedAsync.