diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-02-13 09:27:28 -0500 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2017-02-13 09:27:28 -0500 |
commit | ff741740eebceb43b1d69b13d97ae7eed2aa32d1 (patch) | |
tree | 0f795cea935a72997bf3618ceaf3b0513d5e8096 /api/deprecated.go | |
parent | fac85b676eafb20b5f70db1805006d64889606ff (diff) | |
download | chat-ff741740eebceb43b1d69b13d97ae7eed2aa32d1.tar.gz chat-ff741740eebceb43b1d69b13d97ae7eed2aa32d1.tar.bz2 chat-ff741740eebceb43b1d69b13d97ae7eed2aa32d1.zip |
Increase performance when receiving messages (#5375)
Diffstat (limited to 'api/deprecated.go')
-rw-r--r-- | api/deprecated.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/api/deprecated.go b/api/deprecated.go index 9c1d2a4ce..46f016420 100644 --- a/api/deprecated.go +++ b/api/deprecated.go @@ -101,11 +101,6 @@ func updateLastViewedAt(c *Context, w http.ResponseWriter, r *http.Request) { app.Srv.Store.Preference().Save(&model.Preferences{teamPref, chanPref}) - message := model.NewWebSocketEvent(model.WEBSOCKET_EVENT_CHANNEL_VIEWED, c.TeamId, "", c.Session.UserId, nil) - message.Add("channel_id", id) - - go app.Publish(message) - result := make(map[string]string) result["id"] = id w.Write([]byte(model.MapToJson(result))) @@ -136,11 +131,6 @@ func setLastViewedAt(c *Context, w http.ResponseWriter, r *http.Request) { app.Srv.Store.Preference().Save(&model.Preferences{teamPref, chanPref}) - message := model.NewWebSocketEvent(model.WEBSOCKET_EVENT_CHANNEL_VIEWED, c.TeamId, "", c.Session.UserId, nil) - message.Add("channel_id", id) - - go app.Publish(message) - result := make(map[string]string) result["id"] = id w.Write([]byte(model.MapToJson(result))) |