From e87965f39d2ce6dbd0e7883c387956413c663f6a Mon Sep 17 00:00:00 2001 From: Jesse Hallam Date: Wed, 10 Oct 2018 13:56:54 -0400 Subject: 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 --- app/plugin_install.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/plugin_install.go') 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) -- cgit v1.2.3-1-g7c22