[slack] invoke apps.uninstall if installation fails after successful authorization #102
Labels
component: plugin
New plugin request, or feature request on an existing plugin
priority: low
low priority
This issue refers to this code comment. The installation process requires the installer to be an admin, because PolicyKit requires it. We're only able to check if the installing user is an admin after they perform the install, at which point the app is already installed from Slack's point of view. As you can see in the linked code, we raise an error if the installing user is not an admin, or if we fail to get their user info. At that point we should also uninstall the app using apps.uninstall because we are failing the installation.
The text was updated successfully, but these errors were encountered: