summaryrefslogtreecommitdiffstats
path: root/api/channel.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-01-04 16:17:12 -0500
committerHarrison Healey <harrisonmhealey@gmail.com>2017-01-04 16:17:12 -0500
commit461a39c49790a3d788a7d580aa9435a100b92208 (patch)
tree31e1988c63df0a288f0c3bb794e0a5497837548f /api/channel.go
parent45585e6c2a03d3bfcbcc1a68ccdb06e596fa3ea2 (diff)
downloadchat-461a39c49790a3d788a7d580aa9435a100b92208.tar.gz
chat-461a39c49790a3d788a7d580aa9435a100b92208.tar.bz2
chat-461a39c49790a3d788a7d580aa9435a100b92208.zip
Fix bad merge causing unread update issue (#4966)
Diffstat (limited to 'api/channel.go')
-rw-r--r--api/channel.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/channel.go b/api/channel.go
index 70612e6eb..4c9e514ac 100644
--- a/api/channel.go
+++ b/api/channel.go
@@ -1297,6 +1297,7 @@ func viewChannel(c *Context, w http.ResponseWriter, r *http.Request) {
message := model.NewWebSocketEvent(model.WEBSOCKET_EVENT_CHANNEL_VIEWED, c.TeamId, "", c.Session.UserId, nil)
message.Add("channel_id", view.ChannelId)
+ go Publish(message)
ReturnStatusOK(w)
}