summaryrefslogtreecommitdiffstats
path: root/api/channel.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-07-14 15:12:04 -0800
committer=Corey Hulen <corey@hulen.com>2015-07-14 15:12:04 -0800
commit246d12aaf23fa3a2c23225b33a333effff76253b (patch)
treec2a19c301b34391427e60e0e5cfcbf9879a44ee7 /api/channel.go
parenta45dea6b06bb62b3fb953d598854c371f417082d (diff)
downloadchat-246d12aaf23fa3a2c23225b33a333effff76253b.tar.gz
chat-246d12aaf23fa3a2c23225b33a333effff76253b.tar.bz2
chat-246d12aaf23fa3a2c23225b33a333effff76253b.zip
fixes mm-1348 removing dependency on redis
Diffstat (limited to 'api/channel.go')
-rw-r--r--api/channel.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/api/channel.go b/api/channel.go
index 88db27def..4d8dbad09 100644
--- a/api/channel.go
+++ b/api/channel.go
@@ -8,7 +8,6 @@ import (
"fmt"
"github.com/gorilla/mux"
"github.com/mattermost/platform/model"
- "github.com/mattermost/platform/store"
"net/http"
"strings"
)
@@ -542,7 +541,7 @@ func updateLastViewedAt(c *Context, w http.ResponseWriter, r *http.Request) {
message := model.NewMessage(c.Session.TeamId, id, c.Session.UserId, model.ACTION_VIEWED)
message.Add("channel_id", id)
- store.PublishAndForget(message)
+ PublishAndForget(message)
result := make(map[string]string)
result["id"] = id
@@ -657,7 +656,7 @@ func addChannelMember(c *Context, w http.ResponseWriter, r *http.Request) {
message := model.NewMessage(c.Session.TeamId, "", userId, model.ACTION_USER_ADDED)
- store.PublishAndForget(message)
+ PublishAndForget(message)
<-Srv.Store.Channel().UpdateLastViewedAt(id, oUser.Id)
w.Write([]byte(cm.ToJson()))