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
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
c36e85c912
Коммит
e87965f39d
@@ -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)
|
||||
|
||||
Ссылка в новой задаче
Block a user