summaryrefslogtreecommitdiffstats
path: root/app/plugin_install.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2018-07-05 10:23:55 -0400
committerChristopher Speller <crspeller@gmail.com>2018-07-05 07:23:55 -0700
commit7bfb5aec26c6bb8c49fa19e8347bc91acc86fe92 (patch)
tree6e62d8756c483e67611c9d66b10b0435c97f8bda /app/plugin_install.go
parent83a3ac089cff0d05559e6ba5c2c60b09f5cae176 (diff)
downloadchat-7bfb5aec26c6bb8c49fa19e8347bc91acc86fe92.tar.gz
chat-7bfb5aec26c6bb8c49fa19e8347bc91acc86fe92.tar.bz2
chat-7bfb5aec26c6bb8c49fa19e8347bc91acc86fe92.zip
Add back enable/disable WS events (#9052)
Diffstat (limited to 'app/plugin_install.go')
-rw-r--r--app/plugin_install.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/plugin_install.go b/app/plugin_install.go
index c03ad2108..e49f6f83e 100644
--- a/app/plugin_install.go
+++ b/app/plugin_install.go
@@ -108,6 +108,12 @@ func (a *App) removePlugin(id string) *model.AppError {
return model.NewAppError("removePlugin", "app.plugin.not_installed.app_error", nil, "", http.StatusBadRequest)
}
+ if a.Plugins.IsActive(id) && manifest.HasClient() {
+ message := model.NewWebSocketEvent(model.WEBSOCKET_EVENT_PLUGIN_DISABLED, "", "", "", nil)
+ message.Add("manifest", manifest.ClientManifest())
+ a.Publish(message)
+ }
+
a.Plugins.Deactivate(id)
err = os.RemoveAll(pluginPath)