summaryrefslogtreecommitdiffstats
path: root/app/plugin_install.go
diff options
context:
space:
mode:
authorJesse Hallam <jesse.hallam@gmail.com>2018-10-10 13:56:54 -0400
committerChristopher Speller <crspeller@gmail.com>2018-10-10 10:56:54 -0700
commite87965f39d2ce6dbd0e7883c387956413c663f6a (patch)
tree62f2fe9f1ae2bc4c4c2f9e31f9a929c14e53ede0 /app/plugin_install.go
parentc36e85c9126b921cf00e578ac70c1f1ee0153abd (diff)
downloadchat-e87965f39d2ce6dbd0e7883c387956413c663f6a.tar.gz
chat-e87965f39d2ce6dbd0e7883c387956413c663f6a.tar.bz2
chat-e87965f39d2ce6dbd0e7883c387956413c663f6a.zip
MM-11905: delete plugin commands on removal (#9601)
* defer plugin tear down for testing * test expected plugin command unregistration * MM-11905: uninstall plugin commands on remove
Diffstat (limited to 'app/plugin_install.go')
-rw-r--r--app/plugin_install.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/plugin_install.go b/app/plugin_install.go
index b97fbc5d5..588f86f08 100644
--- a/app/plugin_install.go
+++ b/app/plugin_install.go
@@ -120,6 +120,8 @@ func (a *App) removePlugin(id string) *model.AppError {
a.Publish(message)
}
+ a.UnregisterPluginCommands(id)
+
a.Plugins.Deactivate(id)
err = os.RemoveAll(pluginPath)