diff options
author | Jesse Hallam <jesse.hallam@gmail.com> | 2018-03-05 07:18:22 -0500 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2018-03-05 12:18:22 +0000 |
commit | fbff94f3be1bf596f2b94f593687d3b162413de9 (patch) | |
tree | 2aea8cf109b1623a207ab38ea28bdf816faf3b09 /api4/system.go | |
parent | fa98175a46106ba116e6e6cd05577fb03308ceac (diff) | |
download | chat-fbff94f3be1bf596f2b94f593687d3b162413de9.tar.gz chat-fbff94f3be1bf596f2b94f593687d3b162413de9.tar.bz2 chat-fbff94f3be1bf596f2b94f593687d3b162413de9.zip |
MM-8604: emit config/license websocket events (#8371)
Diffstat (limited to 'api4/system.go')
-rw-r--r-- | api4/system.go | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/api4/system.go b/api4/system.go index aab65bf20..c1541f0b5 100644 --- a/api4/system.go +++ b/api4/system.go @@ -8,7 +8,6 @@ import ( "io" "net/http" "runtime" - "strconv" l4g "github.com/alecthomas/log4go" "github.com/mattermost/mattermost-server/model" @@ -247,14 +246,7 @@ func getClientConfig(c *Context, w http.ResponseWriter, r *http.Request) { return } - respCfg := map[string]string{} - for k, v := range c.App.ClientConfig() { - respCfg[k] = v - } - - respCfg["NoAccounts"] = strconv.FormatBool(c.App.IsFirstUserAccount()) - - w.Write([]byte(model.MapToJson(respCfg))) + w.Write([]byte(model.MapToJson(c.App.ClientConfigWithNoAccounts()))) } func getClientLicense(c *Context, w http.ResponseWriter, r *http.Request) { |